atom-laravel-snippets

Laravel 5 snippets for Atom.


Keywords
atom, atom-snippets, laravel, laravel5, snippets
License
MIT
Install
apm install atom-laravel-snippets@0.8.0

Documentation

Laravel 5 Snippets for Atom

Install

Atom Package: https://atom.io/packages/atom-laravel-snippets.

apm install atom-laravel-snippets

Or Settings/Preferences ➔ Install ➔ Search for atom-laravel-snippets. You should restart Atom after the Install / Update of the package.

Snippets

Eloquent : Relationships

  • ho: hasOne
  • hm: hasMany
  • bt: belongsTo
  • btm: belongsToMany
  • hot: hasOneThrough
  • hmt: hasManyThrough
  • mt: morphTo
  • mo: morphOne
  • mm: morphMany
  • mtm: morphToMany
  • mbm: morphedByMany

Eloquent : Mutators

  • getA: Accessor
  • setA: Mutator

Eloquent : Query Scopes

  • scope: Local scope
  • scopeDyn: Dynamic scope