lundi 28 novembre 2016

Populate Laravel form with Auth::user

I've used a form to save my user's requests in a database. Requests can be made without logging in, but also while logged in.

When someone is logged in, their info should be put into the form already, so they won't have to.

I wrote this in one of my form parts, to retreive their info, but it returns code:

<?php echo e(Auth::user()->organisation); ?>

The form is put like this:

{!! Form::Text('organisation', '}', array('required' => 'required')) !!}

I know it's probably something really small that i'm missing, but I can't put my finger on it



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

Aucun commentaire:

Enregistrer un commentaire