96507/how-to-make-laravel-blade-text-field-read-only
I have a text box that needs to be made readonly; I don't want to use array('disabled' => 'true') because I need PHP to process the field:
{{ Form::text('login_token', Worker::generateLoginToken()) }}
How do you add this attribute?
Just add it as the 3rd argument:
{{ Form::text('login_token', Worker::generateLoginToken(), ['readonly']) }}
Hii, You can create a constants.php page in config folder ...READ MORE
Hello @kartik, You can use the blade template ...READ MORE
Hello @kartik, By default, blade doesn't have @break and @continue which are ...READ MORE
Hello @kartik, Assuming you're using jQuery... create a route ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hii, Migrations are like version control for your database, ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.