Created
November 13, 2017 10:10
-
-
Save srockstyle/aad064e1796be205a85b5bef40b85211 to your computer and use it in GitHub Desktop.
【RailsユーザのためのPHP/Laravel】form_for的なのを使いたい ref: https://qiita.com/srockstyle/items/ee8f63d93b871424ccbf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer require laravelcollective/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return [ | |
'providers' => [ | |
// ... | |
'Collective\Html\HtmlServiceProvider', | |
], | |
'aliases' => [ | |
// ... | |
'Form' => Collective\Html\FormFacade::class, | |
'Html' => Collective\Html\HtmlFacade::class, | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!! Form::label('title', 'Title:') !!} | |
{!! Form::text('title',[わたしたいパラメータのvalue。なければnull], ['class' => '[クラス名]']) !!} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment