Answers for "laravel softdeletes migration"

PHP
1

laravel drop column

// To drop a column, use the dropColumn method on the schema builder.
// Before dropping columns from a SQLite database, you will need to add
// the doctrine/dbal dependency to your composer.json file and run the
// composer update command in your terminal to install the library:

Schema::table('users', function (Blueprint $table) {
    $table->dropColumn('votes');
});
Posted by: Guest on January-18-2021
0

laravel migration table softdeletes

$ php artisan make:migration add_soft_deletes_to_user_table --table="users"}
Posted by: Guest on September-15-2020
0

laravel migration table softdeletes

use Illuminate\Database\Eloquent\SoftDeletes;class User extends Model {use SoftDeletes;    protected $dates = ['deleted_at'];}
Posted by: Guest on September-15-2020

Code answers related to "laravel softdeletes migration"

Browse Popular Code Answers by Language