1 /**
2 * The attributes that are mass assignable.
3 */
4 protected $fillable = [
5 'title',
6 'slug',
7 'body',
8 'image',
9 'published',
10 'comments_open'
11 ];
1Soft Delete : $user->delete();
2Force Delete : $user->forceDelete();
3Restore Soft Deleted Item : $user->restore();
1Schema::table('flights', function (Blueprint $table) {
2 $table->softDeletes();
3});
1Product::onlyTrashed()->where('deleted_at', '<', Carbon::subDays(30))->forceDelete();