• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

laravelcollective-html-form-snippets

Atom snippets for LaravelCollective HTML form elements
  • #laravel
  • #snippets
  • #laravelcollective
  • #forms
  • #html
PHLAK
1.0.0 2,202
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

LaravelCollective HTML Form Snippets for Atom

Atom snippets for LaravelCollective HTML form elements. -- by, Chris Kankiewicz (@PHLAK)

Demo

Like this project? Keep me caffeinated by making a donation.

Installation

Wtih APM:
apm install laravelcollective-html-form-snippets
In Atom:
  1. In Atom press Ctrl + Shift + P to open the command pallet
  2. Search for Install Packages and Themes and press Enter
  3. From the "Install Packages" page search for LaravelCollective HTML Form Snippets
  4. Press the Install button to install
With Git:

Clone the repository in your Sublime Text "Packages" directory (~/.atom/packages on Linux):

git clone git@github.com:PHLAK/laravelcollective-html-form-snippets-atom.git

NOTE: It is recommended that you also install the language-blade package to get full blade syntax highlighting.


Usage

To use these snippets, type the trigger text followed by the Tab key.

Trigger Text Output
formopen {!! Form::open() !!}
formclose {!! Form::close() !!}
formtoken {!! Form::token() !!}
formmodel {!! Form::model($user, []) !!}
formlabel {!! Form::label($for, $text, []) !!}
formtext {!! Form::text($name, $value, []) !!}
formtextarea {!! Form::textarea($name, $value, []) !!}
formpassword {!! Form::password($name, []) !!}
formhidden {!! Form::hidden($name, $value, []) !!}
formemail {!! Form::email($name, $value, []) !!}
formfile {!! Form::file($name, []) !!}
formcheckbox {!! Form::checkbox($name, $value, $checked, []) !!}
formradio {!! Form::radio($name, $value, $checked, []) !!}
formnumber {!! Form::number($name, $value, []) !!}
formdate {!! Form::date($name, \Illuminate\Support\Carbon::now(), []) !!}
formselect {!! Form::select($name, $optionsArray, $defaultKey, []) !!}
formselectrange {!! Form::selectRange($name, $min, $max), [] !!}
formselectmonth {!! Form::selectMonth($name, []) !!}
formsubmit {!! Form::submit($text, []) !!}

Contributing

  1. Fork this repo
  2. Make your changes
  3. Submit Pull Request

Changelog

A list of changes can be found on the GitHub Releases page.

Troubleshooting

Please report bugs to the GitHub Issue Tracker.

Copyright

This project is licensed under the MIT License.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by