ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

#blade

1 post1 participant0 posts today

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

#forj #coutellerie #knife
Ma version du #couteau Plazen, le "Reyzen", #Lame en #acier carbone sandwich 100c6, soir traversante, rondelle en laiton, virole en fer martelée, #manche en noyer stabilisé et huilé. Je finis son étui et je l'envoie a son commanditaire. 🌧️

My version of the Plazen, the 'reyzen',
Sandwich 100c6 carbon #steel #blade, through tang, hammered iron ferrule, stabilized and oiled #walnut #handle. I'm finishing its sheath and sending it to its sponsor.
youtu.be/MvVRuiR93FY?si=u5djX8

The Ocean - Jurassic | Cretaceous (Drum Play-through by Paul Seidel) - youtube.com/watch?v=1_dNh352RE

#metal #blade #records #official #channel #metal blade records #the ocean #the ocean collective #Phanerozoic I #phanerozic II #mesozoic #Cenozoic #the ocean jurassic #the ocean cretaceous #new the ocean song #new the ocean album #sludge metal #doom metal #katatonia #jonas renkse #post metal #drummer #drum playthrough #play-through #learning drums

#blade : properly, the leaf, or flat part of the leaf, of any plant, especially of gramineous plants. the term is sometimes applied to the spire of grasses

- French: lame

- German: die Klinge

- Italian: foglio

- Portuguese: lâmina

- Spanish: hoja

------------

Thank you so much for being a member of our community!