Handy Sublime Text snippets to create Laravel Collective Forms inputs preformated for Twitter’s Bootstrap 3.
First you need to get the syntax package laravel-blade installed, then install this one using one of the following options:
-
Via Package Control: search for
Laravel Forms Bootstrap Snippets. -
Via Git, clone this repository into your Packages folder:
git clone https://github.com/redgluten/laravel_forms_boostrap_snippets.git- Or download the snippets zip file and unzip it into your Packages folder (Windows & Linux:
Preferences > Browse Packages..., Mac:Sublime Text > Preferences > Browse Packages...).
When you're editing your view in Sublime Text, type the snippet shortcut followed by the tab key.
| Input | Shortcut |
|---|---|
| Form | bootform |
| Form model | bootformmodel |
| Input | Shortcut |
|---|---|
| Button | bootbutton |
| Checkbox | bootcheckbox |
| Date | bootdate |
bootemail |
|
| File | bootfile |
| Hidden | boothidden |
| Number | bootnumber |
| Password | bootpassword |
| Radio | bootradio |
| Select | bootselect |
| SelectMonth | bootselectmonth |
| SelectYear | bootselectyear |
| SelectRange | bootselectrange |
| Text | boottext |
| Textarea | boottextarea |
| Input | Shortcut |
|---|---|
| Checkbox | bootcheckboxh |
| Date | bootdateh |
bootemailh |
|
| File | bootfileh |
| Number | bootnumberh |
| Password | bootpasswordh |
| Radio | bootradioh |
| Select | bootselecth |
| SelectMonth | bootselectmonthh |
| SelectYear | bootselectyearh |
| SelectRange | bootselectrangeh |
| Text | boottexth |
| Textarea | boottextareah |
