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