eloquent
Laravel Eloquent vs DB facade: When to use which? [closed]
Eloquent is Laravel’s implementation of Active Record pattern and it comes with all its strengths and weaknesses. Active Record is a good solution for processing a single entity in CRUD manner – that is, create a new entity with filled properties and then save it to a database, load a record from a database, or … Read more
how can I create a migration to add a value to an enum in eloquent
Laravel doesn’t provide methods to update an enum column. You can delete and recreate the column but you could loose data during the operation and it’s not really clean. In this case, I think that the best choice is to write raw SQL into a migration : public function up() { DB::statement(“ALTER TABLE user_status MODIFY … Read more