mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.3K
active users

#laravel

20 posts17 participants2 posts today

Sie haben #PHP "entwickelt" 🤦

Frameworks und Bibliotheken wurden ja einmal geschaffen, damit man nicht alles immer wieder neu schreiben muss. Okay.

Jetzt kann ich also "native PHP" nutzen. Als Paket in einem PHP-Framework, welches auf PHP basiert und in dem man an jeder Stelle gerne auch einfach "native PHP" nutzen kann und darf.

Bald weiß wirklich niemand mehr, wie man irgendwas "from Scratch" entwickelt.

#Coding #PHP #Laravel

laravel-news.com/nativephp-v1

@me maybe try to default it to null?

But yeah I find constructor arguments for blade components often behave weirdly. I guess that’s because they are used for dependency injection.

One of the worst flaws in that imo is that if you typing a public Registration|null $registration = null the =null part is effectively ignored, as it injects an instance of new Registration() instead, which can understand the mechaniscs of why, but still seems wrong to me …

Scrap this, I was being an idiot and reading documentation is apparently hard 😂 🤦‍♂️

~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

This is how I am using the compnent btw;
php
    $approved = $registration->approved;
    dump($approved);
@endphp
<x-registration-status-component approved="$approved" />

~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

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.