|
1 | 1 |
|
2 | 2 | # Phpstorm Laravel Snippets
|
| 3 | +* [Blade](#blade) |
| 4 | +* [Cache](#cache) |
| 5 | +* [Form](#form) |
| 6 | + * [Helpers](#helpers) |
3 | 7 |
|
4 | 8 |
|
5 | 9 | ## Blade
|
|
23 | 27 | |{{| Blade {{ echo data }}|
|
24 | 28 | |{{--| Blade comments|
|
25 | 29 | |{{{| Blade {{{ echo escaped data }}}|
|
26 |
| ------------------------------------------------------------------------------------------------------------ |
| 30 | +-------------------------------------------------------------------------------- |
| 31 | + |
| 32 | +## Cache |
| 33 | +|Prefix|description| |
| 34 | +|--------|-----------| |
| 35 | +|Cache::add| Store an item in the Cache if it doesn't exist (key, value, minutes) |
| 36 | +|Cache::decrement| Decrement a Cached value |
| 37 | +|Cache::forever | Store an item in the Cache Permanently |
| 38 | +|Cache::forget | Remove an Item from the Cache |
| 39 | +|Cache::get| Retrieve an Item from the Cache |
| 40 | +|Cache::has | Check for existence in Cache |
| 41 | +|Cache::increment| Increment a Cached value. |
| 42 | +|Cache::put |Blade @include| |
| 43 | +|Cache::remember| Retrieve item or Store a default value if it doesn't exist| |
| 44 | +|Cache::rememberForever| Retrieve item or Store a default value permanently |
| 45 | +-------------------------------------------------------------------------------- |
| 46 | + |
| 47 | +## Form |
| 48 | +|Prefix|description| |
| 49 | +|--------|-----------| |
| 50 | +|Form::checkbox| Generate a Checkbox element (name, value, checked, attributes)| |
| 51 | +|Form::email| Generate an Email Input element (name, default, attributes) |
| 52 | +|Form::hidden | Generate a Hidden Input element (name, default)| |
| 53 | +|Form::input|Generate a File Input element (name, attributes). |
| 54 | +|Form::label| Generate a Label element |
| 55 | +|Form::macro| Generate a Form Macro |
| 56 | +|Form::model| Open a Form with Model Binding| |
| 57 | +|Form::open|Open a Form| |
| 58 | +|Form::openWithFileUpload| Open a Form and Enable File Upload| |
| 59 | +|Form::password| Generate a Password Input element (name, attributes)| |
| 60 | +|Form::radio|Generate a Radio element (name, value, checked, attributes)| |
| 61 | +|Form::select| Generate a Drop-down list (name, array of options, default, attributes)| |
| 62 | +|Form::selectMonth|Generate a Drop-down list with Months (name, default, attributes)| |
| 63 | +|Form::selectRange| Generate a Drop-down list with Range (name, from, to, default, attributes)| |
| 64 | +|Form::submit|Generate a Submit button (value, attributes)}| |
| 65 | +|Form::text| Generate a Text Input element (name, default, attributes)| |
| 66 | +|Form::textarea|Generate a Textarea Input element (name, default, attributes)| |
| 67 | +-------------------------------------------------------------------------------- |
| 68 | + |
| 69 | +## Helpers |
| 70 | +|Prefix|description| |
| 71 | +|--------|-----------| |
| 72 | +|Helper::action|Generate a URL for a given controller action| |
| 73 | +|Helper::asset|Generate a URL for an asset |
| 74 | +|Form::hidden | Generate a Hidden Input element (name, default)| |
| 75 | +|Helper::link_to|Generate a HTML link to the given URL. |
| 76 | +|Helper::link_to_action| Generate a HTML link to the given controller action |
| 77 | +|Helper::link_to_asset| Generate a HTML link to the given asset |
| 78 | +|Helper::link_to_route| Generate a HTML link to the given route| |
| 79 | +|Helper::path|Paths to directories| |
| 80 | +|Helper::route| Generate a URL for a given named route| |
| 81 | +|Helper::secure_asset| Generate a HTML link to the given asset using HTTPS| |
| 82 | +|Helper::secure_url|Generate a fully qualified URL to a given path using HTTPS| |
| 83 | +|Helper::url| Generate a fully qualified URL to a given path| |
| 84 | +-------------------------------------------------------------------------------- |
0 commit comments