Answers for "Laravel display the date the participation was created"

PHP
0

Laravel display the date the participation was created

public function index()
    {
        $actones = Actone::orderBy('created_at', 'desc')->paginate(50);
    
        return view('admin.activities.actone.index')->withActones($actones);
    }
Posted by: Guest on October-22-2020
0

Laravel display the date the participation was created

@foreach ($actones as $actone)
     <div class="card">
       <div class="card-content">

                 <h1>{{$actone->id}}</h1>
                 <h1>{{$actone->category}}</h1>
                 <h1>{{$actone->time}}</h1>
                 <h1>{{$actone->name}}</h1>

                 <h1>{{date('d/m/Y - H:i', strtotime($actone->created_at))}}</td>

       </div>
     </div> <!-- end of .card -->
     @endforeach
Posted by: Guest on October-22-2020

Code answers related to "Laravel display the date the participation was created"

Browse Popular Code Answers by Language