Set a default value if input field is blank
On my RegisterController,
'Referrer'= required | max :255
my create function looks up to referrer to create data
'Referrer' => $data('Referrer')
So how do I set a default value if the input field is blank?
@if (empty ('Referrer')
'Referrer' = 1
then the normal input field
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!