How update name field in migrations

Posted 4 months ago by mstdmstd

Hello, If there is a way in migrations to update name field of the table. I had a seeder like:

        \App\Models\StorageSpaceStatus::insert(
            [
                ['id' => 1, 'name' => 'Available',      'color' => '#FFA500'],
                ['id' => 2, 'name' => 'Booked',         'color' => '#008000'],
            ]
        );

Now I need to modify name of the

'name' = 'Booked'

Which is the valid way to do it?

laravel 5.5

Thanks!

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.