delete all rows in table laravel
// Uncomment the below to wipe the table clean before populating
DB::table('table_name')->truncate();
//or
DB::table('table_name')->delete();
delete all rows in table laravel
// Uncomment the below to wipe the table clean before populating
DB::table('table_name')->truncate();
//or
DB::table('table_name')->delete();
laravel clear table
// Delete everythin in the table
// Option 1
Project::truncate();
// Option 2
Project::whereNotNull('id')->delete();
// Option 3
Project::where('id', 'like' '%%')->delete();
// Option 4
DB::table('projects')->delete();
laravel drop table migration
Schema::drop('users');
Schema::dropIfExists('users');
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us