How update name field in migrations

Posted 7 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.

Reply to

Use Markdown with GitHub-flavored code blocks.