veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

296
active users

#laravel

26 posts21 participants0 posts today

Huh... this is interesting in Laravel. Say you have a model, let's call it Registration and it has nullable boolean as one of its fields. Let call that field approved where null means "not yet decided", "false" is declined and "true" is accepted.

If you throw in that field into a custom Blade component like so;

class RegistrationStatusComponent extends Component
{
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct(
        public null | bool $approved
    ) {
        dd($this->approved);
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
    public function render()
    {
        return view('components.registration-status-component');
    }
}

If you throw in a model that has an
approved value of null, Blade will automatically cast that null-value to false.
false // app/View/Components/RegistrationStatusComponent.php:17

I was today years old when I learned that this is apparently a thing.

#PHP #Laravel #Blade

I'm building my own website for my creative projects. But me being me, I can't just do that. No. So.. I'm building my own CMS and learning Laravel and Blade templates. I want a CMS that's not just circled around blogging, but more for a personal creative website - a bit old skool style - and I want to ⭐ federate it! ⭐

I'll be slowly building and designing the whole thing together, evolving it over the next year. I'll likely be putting different parts up on my Forgejo (git) install, and also, possibly eventually if it's good enough, put the whole thing out as an open source project. But it could all go horribly wrong yet.

Joining a project as a new contributor gives me a unique view that may have been lost by the team. I feel existing pains more acutely, where they have become numb to them. In this video, I use a slow CI pipeline as an example and demonstrate how to speed it up. #php #laravel masteringlaravel.io/daily/2025

Mastering LaravelHow to deal with the pain of slow CI pipelines | Mastering LaravelDon't get numb to it

I did not know yet this is a thing. I am scared, curious and impressed at the same time. 😅

I mostly enjoyed PHP and Laravel in the past. 😊 From a certain perspective, I see the value as enablement for developers delivering to new environments while sticking to their stack.

On the other hand, this is even further in the direction of something being used in a way it was not designed for, resulting in a whole lot of other problems. 🫣

nativephp.com

nativephp.comNativePHPBuild native applications, with the tools you already know.

Laravel vs. Symfony: A Comprehensive Comparison of #PHP #Frameworks

This article provides a guide concerning #Laravel vs. Symfony: a comprehensive comparison of PHP frameworks.
Laravel vs. Symfony: A Comprehensive Comparison of PHP Frameworks
Laravel and #Symfony are two of the most popular PHP frameworks, widely used for building modern web applications. Both have strong communities, rich ecosystems, and are frequently chosen by ...
Continued 👉 blog.radwebhosting.com/laravel #websitedevelopment

Laravel vs. Symfony: A Comprehensive Comparison of PHP Frameworks
RadWeb, LLC · Laravel Vs. Symfony: A Comprehensive Comparison Of PHP Frameworks - VPS Hosting Blog | Dedicated Servers | Reseller HostingThis article provides a guide concerning Laravel vs. Symfony: a comprehensive comparison of PHP frameworks.

I'm not really a #Laravel expert, but shouldn't this be a chained job to prevent followers from being deleted before they've been notified?

The way it is implemented right now, ProfileMigrationMoveFollowersPipeline could be executed before ProfileMigrationDeliverMoveActivityPipeline if there are two workers.

@pixelfed @dansup