Sometimes you need to create a controller which doesn't cover all seven resourceful methods, like index(), create(), store() etc. You just need controller which does one thing and you're struggling how to name that method. No more struggle, there's __invoke() method.
Laravel has a great Auth system out-of-the-box, with just a few commands you can have Login/Register functions ready. But let's dive a little deeper and see what we can easily customize.
Spatie team is still on fire with new packages. This week they released another one called Laravel Searchable, created mainly by AlexVanderbist. I've tried it myself and can show you a demo, along with my opinion.
Typical Eloquent one-to-many relationship is defined with belongsTo() and hasMany() methods in the model. But did you know you can chain more methods to filter specific records for that relationship? Let me show you what I mean.
This is a free 15-minute live-coding video from my course "Excel Export/Import in Laravel". In this video, I'm seeding some data, exporting it to Excel, edit some data there and importing it back, all with Laravel Excel package.
There is a well-known Laravel validation rule required. But did you know there a few similar rules called present and filled? In this short video, I'm showing the differences and use-cases.
This is a free video from my online course "Excel: Export/Import in Laravel". In this video, I'm trying to import a file via Laravel Excel package, and showing how to handle errors and catch PHP Exceptions.
This is a free video from my course "Excel: Export/Import in Laravel". In this video, I'm showing a less-known feature of Laravel Excel package - exporting from HTML/Blade table.