Ларавел бросает все столы
php artisan migrate:fresh
php artisan migrate:fresh --seed
Foolish Ferret
php artisan migrate:fresh
php artisan migrate:fresh --seed
Schema::drop('users');
Schema::dropIfExists('users');
Comment::where('post_id',$id)->delete();
// in down migration
public function down()
{
Schema::table('package_types', function (Blueprint $table) {
\App\Models\PackageType::query()->where('id','gt',1)->delete();
});
}