This is a quick brain dump for myself to remember how I set up Laravel with Docker. Hopefully it can help others out also.
In Laravel you can create custom request classes where you can house the validation for any given route. If that validation then fails, Laravel’s…
Digging into laravel is fun. Just made my first little generator tool. Laravel makes everything so bloody easy!
Laravel’s blade view compiler is second to none. I’ve used a couple of different templating engines and blade is by far my favourite. Including…
Laravel global query scopes were the answer I needed when working out how to deal with post types in a clean way.
Great to see @laravelphp has reinstated auth/register functionality as an artisan command in 5.2
Updated to PHP7 and got white screen where was fine before. It was @laravelphp blade comment block causing. Deleting comment block fixed it. Just mentioned in case anybody else had a similar issue.
Starting a new personal project tonight. Finally a medium-sized project idea that I want to build. And one to really dig into Laravel.
Normally, with Laravel (@laravelphp on Twitter), if you create a model and use the “-m” or “–migration” flag to create the accompanying migration, it will pluralize the table.
So for example “User” model will use a “users” table; “Vehicle” model will use a “vehicles” table.
I just discovered however, that if you create a “Data” model, the table will also be created as “data” – not “datas”. It makes complete sense as datas isn’t a word.
I love using this framework.
Rewriting my database structure is proving more work than first thought. Still – I’ve learnt some new Laravel stuff which is always good. So even if it never ends up being used, it’s not been a wasted exercise.
I’ve been using Laravel for my personal website for about eight months now and haven’t looked back since. This huge advantage to my rebuilding…
A handy way to have some of your routes skip the middleware for CSRF protection. Handy in some situations.