lundi 29 mai 2017

How to get the created_at in pivot table in laravel

Im confused how to get the created_at column in my pivot table. I have exam_user table with created_at and updated_at column. Now, I have this code in my view:

@if($exam->users()->where('user_id', Auth::user()->id)->exists())
    
    <div class="alert alert-success">You have done with this exam.</div>
@else

Any idea for this?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2s8HUzd
via IFTTT

Aucun commentaire:

Enregistrer un commentaire