Atom Package: https://atom.io/packages/laravel5-snippets-atom.
apm install laravel5-snippets-atom
Or Settings/Preferences ➔ Install ➔ Search for laravel5-snippets-atom
.
You should restart Atom after the Install / Update of the package.
pvar: Protected variable.
pfun: Define PHP method.
__const: Construct method.
try7: Try ... catch.
throwex: throw exception.
car:now: Carbon now.
car:yesterday: Carbon yesterday.
car:tomorrow: Carbon tomorrow.
car:today:start: Carbon today.
car:start: Carbon end of day.
car:end: Carbon end of day.
car:week:start: Carbon start of week.
car:week:end: Carbon end of week.
car:create: Carbon create datetime.
car:createFormat: Carbon create custom format.
car:subDays: Carbon sub days.
car:subMonths: Carbon sub months.
car:subYears: Carbon sub years.
car:addDays: Carbon add days.
car:addMonths: Carbon add months.
car:addYears: Carbon add years.
preg:match: Regex Match.
preg:match:all: Regex Match All.
preg:replace: Regex Replace.
preg:replace:callback: Regex Replace with Callback.
call:func: php call function.
call:func:array: php call function with more args.
file:get:contents: php read the file's contents.
file:put:contents: php write the file's contents.
fillable:attr: Fillable model property.
timestamp:attr: Model timestamps' property.
dates:attr: Model dates' property.
appends:attr: Appends model property.
hidden:attr: Hidden model property.
visible:attr: Visible model property.
casts:attr: Attribute Cast to other type.
getfun: Attribute Accessor(Getter).
setfun: Attribute Mutator(Setter).
belongsto:fun: BelongsTo method.
belongstom:fun: BelongsToMany method.
hasone:fun: HasOne method.
hasone:through: HasOneThrough method.
hasmany:through: HasManyThrough method.
morph:one: morph one method.
morph:to: morph to method.
morph:many: morph one-to-many method.
morph:to:many: morph many to many method.
morph:by:many: morph many by many method.
within: With method.
with:count: With relationship's count.
boot:fun: Boot method.
scope:fun: Scope method.
leftjoin:closure: Left join closure.
when:closure: when column is not nullable.
where:column: where column equals to another column.
where:has: where have relationship exists.
where:doesnt:have: where another query results exists .
where:has:morph: where has polymorphic relationships.
where:doesn:morph: where has polymorphic relationships.
whereIn:closure: where column in closure.
del:all: Delete all records.
del:one: Delete a record.
del:force: Force delete record.
update:inc: Update increment.
update:dec: Update decrement.
db:update:case: Update case when.
db:table:alias: Alias table query.
schema:table:create: Schema create table.
schema:table:drop: Schema drop table.
red:cont: Redis connection.
red:get: Redis get key.
red:set: Redis set key value.
red:exp: Redis expire key value.
red:del: Redis delete key value.
red:setrange: Redis replace string by key and index.
red:exists: Redis if key exists.
red:setex: Redis set key-value and expire time.
red:setnx: Redis set key-value if key not exists.
red:incr: Redis increase value.
red:incrby: Redis increase value by steps.
red:decr: Redis descrease value.
red:decrby: Redis descrease value by steps.
red:hmget: Redis get multi hash.
red:hmset: Redis set multi hash.
red:lpush: Redis left push.
red:rpush: Redis right push.
red:len: Redis get list length.
red:lindex: Redis get list specific position range value.
red:lrem: Redis remove value from list on left.
red:lpop: Redis left pop.
red:rpop: Redis right pop.
red:lpop: Redis left pop.
red:sort: Redis sort in list.
red:sadd: Redis add value to sets.
red:scard: Redis return sets elem count.
red:smembers: Redis return all members in sets.
red:srem: Redis remove the element in sets.
red:spop: Redis pop element from sets.
red:smove: 'Redis move values from one to another.
red:zadd: Redis add value to sorted sets.
red:zincrby: Redis increase sorted sets value by steps.
red:zrem: Redis remove sorted sets value.
red:zrange: Redis return values in range.
red:zrevrange: Redis return reverse values in range.
red:zscore: Redis return index of sorted sets value.
red:zcount: Redis return the sorted sets count.
red:keys: Redis get keys.
red:scan: Redis scan by keys.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.