onDelete
- https://laracasts.com/series/laravel-5-fundamentals/episodes/14 5:20 (more concise at 6:18)- Useful commans:
php artisan route:list
php artisan migrate:fresh
php artisan make:rule Inlaw
php artisan
to list all lke helpphp artisan make:model ModelName -m -cr
make model with controller
- Understanding auth - https://laracasts.com/series/laravel-5-fundamentals/episodes/15
Carbon\Carbon::now()
- he uses it here - https://laracasts.com/series/laravel-5-fundamentals/episodes/8 7:40- importing Carbon and
fail for bad date
- https://laracasts.com/series/laravel-5-fundamentals/episodes/10 16:23 the import is at 17:15 Carbon->format
vs phpdate
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 2:10- TODO: he submitted a date into database WITHOUT time just month-date-year part - https://laracasts.com/series/laravel-5-fundamentals/episodes/11 2:50 - uses
createFromFormat
to get time in there too at 4:10 of this video Carbon createFromFormat
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 4:10- vs
Carbon parse
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 5:00 - to set it to midnight
- vs
protected $dates
in model - Converting database columns to instances of Carbon - https://laracasts.com/series/laravel-5-fundamentals/episodes/11 - 8:30 then sidetracks and returns at 10:25Carbon ->diffForHumans
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 - 9:45
- importing Carbon and
MassAssignmentException
/$fillable
basic idea - https://laracasts.com/series/laravel-5-fundamentals/episodes/8 7:50 fillable - 9:30find
andmodify field then ->save VS ->update
- https://laracasts.com/series/laravel-5-fundamentals/episodes/8 find starts at 11:07, rest at 11:48find and is_null
- https://laracasts.com/series/laravel-5-fundamentals/episodes/9 9:15->create
- https://laracasts.com/series/laravel-5-fundamentals/episodes/8 11:48get vs first
- get fetchs collection - https://laracasts.com/series/laravel-5-fundamentals/episodes/8 6:47->get
everything vs limited->get
, limit it with a->where
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 5:50new Article then ->save VS ->create
- https://laracasts.com/series/laravel-5-fundamentals/episodes/8 7:05 then side tracks at 7:50 and returns at 10:38->toArray
- he just uses it, maybe explains somewhere in here - https://laracasts.com/series/laravel-5-fundamentals/episodes/8 uses at 11:07- production env - hides detailed error screen on
abort
- https://laracasts.com/series/laravel-5-fundamentals/episodes/9 9:45 url
action
route
- maybe only blade? - https://laracasts.com/series/laravel-5-fundamentals/episodes/9 12:44$input = Request:all()
how to access on input:$input['title']
->create($input)
- https://laracasts.com/series/laravel-5-fundamentals/episodes/10 14:20latest->get()
latest vs order_by
latest('published_at')
- https://laracasts.com/series/laravel-5-fundamentals/episodes/10 17:50latest
just orders things, using with->get
gets EVERYTHING - and->where(blah, '<=', Carbon)
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 5:45
->published
he calls it "query scope" sofunction scopePublished
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 5:20 really at 6:55- Another "query scope" example - https://www.toptal.com/laravel/why-i-decided-to-embrace-laravel
- mutator naming convention
setFieldNameAttribute
- accessor vs mutator (before inserted into database or after its retrieved) https://laracasts.com/series/laravel-5-fundamentals/episodes/11 3:06
withTimestamps
- https://laracasts.com/series/laravel-5-fundamentals/episodes/21 9:34dd
- https://laracasts.com/series/laravel-5-fundamentals/episodes/11 8:30$input = Request::all()
- little bit on
new Blah
vsBlah::create
- https://laracasts.com/series/laravel-5-fundamentals/episodes/10 - 15:00
- ajax image upload - https://laracasts.com/series/lets-build-a-forum-with-laravel/episodes/65
- https://laracasts.com/series/whats-new-in-laravel-5-3/episodes/12 - he mentioned at 8:55 if images are larg we can queue that up, what does that mean? why need that? only for s3? or local too? because i intend to use s3
onDelete('cascade')
- https://laracasts.com/series/laravel-5-fundamentals/episodes/14 6:30