Excerpt 1
l .............................................................................................. 79 Events on Model Events .....................................
View in text
Excerpt 2
es. Let's dive into how you can create your table style and make something useful. How can we register our custom theme? public function handle() { $this->re...
View in text
Excerpt 3
ss from Laravel itself depends on the Faker Generator class. Below we can see how this is being registered in the container as a singleton. use Faker\Factory...
View in text
Excerpt 4
iver('lock-door')->toggle(); // Toggle the lock of the door Although the code itself is not really complicated, the structure behind it can be. It needs to c...
View in text
Excerpt 5
also show a more human-readable format using diffForHumans. Carbon is really powerful for these kinds of outputs. Use it for your own benefit ;) Next to usin...
View in text
Excerpt 6
t. You can run schema:dump to clean up your migration files. This way, you're not connected to the model anymore, at least if it's an older migration. 94 Tab...
View in text
Excerpt 7
ity in Laravel is cool. You can get a pagination object and return to your view or even return it in a resource for our API for any query you perform. Howeve...
View in text
Excerpt 8
f the internal exception classes. namespace App\Exceptions; use App\Exceptions\UserNotFoundException; use Illuminate\Database\Eloquent\ModelNotFoundException...
View in text
Loading comments...
Reply to Comment
Edit Comment