laravel display the date the participation was created

Solutions on MaxInterview for laravel display the date the participation was created by the best coders in the world

showing results for - "laravel display the date the participation was created"
Franco
16 Oct 2016
1public function index()
2    {
3        $actones = Actone::orderBy('created_at', 'desc')->paginate(50);
4    
5        return view('admin.activities.actone.index')->withActones($actones);
6    }
7
Manuel
30 Feb 2020
1     @foreach ($actones as $actone)
2     <div class="card">
3       <div class="card-content">
4
5                 <h1>{{$actone->id}}</h1>
6                 <h1>{{$actone->category}}</h1>
7                 <h1>{{$actone->time}}</h1>
8                 <h1>{{$actone->name}}</h1>
9
10                 <h1>{{date('d/m/Y - H:i', strtotime($actone->created_at))}}</td>
11
12       </div>
13     </div> <!-- end of .card -->
14     @endforeach 
15