Using Laravel in a side project recently, the introduction of Blade Components has been a literal gift for me. Creating reusable components is something we all want in our work process. Thankfully, as of Laravel 7+, you can do just that with a simple artisan command.
Let’s make a basic “Alert” component, then build on it to make it powerful.
php artisan make:component Alert
Here, Laravel will create two new files:
You have a PHP component that collects data, and a view that delivers data. Simple!
Let’s look at the newly generated PHP file:
<?php namespace App\View\Components; use…
Please do not confuse this article with the real Peeple @ peeple.io. This is about a human mockery idea that has actually lost its trademark request to the real Peeple.
It’s no longer hard to tell in this day and age if an idea is simply a gimmick, stupid or actually, pretty amazing. People have preferences — each to their own — but for us, humble and sometimes gullible humans to believe in something, we have to be convinced. In a week, I've witnessed an ambitious yet ugly idea go from bad to worse in just one sentence: