- 05 Apr, 2022 1 commit
-
-
Sergey Latyshkov authored
-
- 29 Mar, 2013 5 commits
-
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
- 28 Mar, 2013 19 commits
-
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
- 27 Mar, 2013 15 commits
-
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
Added `Model::findOrFail(id)` and `firstOrFail` methods to Eloquent. Throws `ModelNotFoundException`. Can listen in your apps and return 404 repsonses if you want.
-
Taylor Otwell authored
-
Taylor Otwell authored
Added saving and saved model events
-
Taylor Otwell authored
-
Taylor Otwell authored
Detach before attach to prevent uniqueness constraint conflicts
-
Andreas Heiberg authored
Example: You have a uniqueness constraint on id and position on the pivot table. You have a list of items and each items has a position in the list hence the position field on the pivot. You would like to remove one item from the bottom of the list and then add another one in it's place. You do this in a form, and get back a json object that has the new desired list of items. You would now like to sync this json object up with the db so you use sync(). Now sync() will try to attach a new item with a position of 3, but that position already exists and an exception is thrown. By first detaching the old item in position 3 and then attaching the new one this conflict is removed. Signed-off-by:
Andreas Heiberg <git@andreas-heiberg.com>
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
-
Taylor Otwell authored
- Added new `dump-autoload` Artisan command that runs optimized for app and all workbenches. - Refactored post `migrate:make` hooks to dump autoloads for workbenches.
-