Skip to content

michael-lurquin/atom-laravel-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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