From 8ede5cd514307cacd7346bba1d5a5c6411d1ce49 Mon Sep 17 00:00:00 2001 From: Ana Carla <92097155+anacarlaquallio@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:31:57 -0300 Subject: [PATCH] Remove all SoftDeletes (#394) Co-authored-by: Alexander Gomzyakov --- app/Models/Category.php | 3 +-- app/Models/Post.php | 3 +-- app/Models/Tag.php | 2 -- app/Models/User.php | 2 -- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/Models/Category.php b/app/Models/Category.php index 0cb9965..a1cec63 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasMany; -use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Carbon; /** @@ -35,7 +34,7 @@ */ class Category extends Model { - use HasFactory, SoftDeletes; + use HasFactory; protected $table = 'categories'; diff --git a/app/Models/Post.php b/app/Models/Post.php index 2ea9655..6c1ce4b 100644 --- a/app/Models/Post.php +++ b/app/Models/Post.php @@ -11,7 +11,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; -use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Str; /** @@ -61,7 +60,7 @@ */ class Post extends Model { - use HasFactory, SoftDeletes; + use HasFactory; protected $table = 'posts'; diff --git a/app/Models/Tag.php b/app/Models/Tag.php index 51dcddb..24ceabc 100644 --- a/app/Models/Tag.php +++ b/app/Models/Tag.php @@ -5,7 +5,6 @@ use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; -use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Carbon; /** @@ -30,7 +29,6 @@ class Tag extends Model { use HasFactory; - use SoftDeletes; protected $table = 'tags'; diff --git a/app/Models/User.php b/app/Models/User.php index 0c422a5..518685b 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Factories\HasFactory; -use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\DatabaseNotification; use Illuminate\Notifications\DatabaseNotificationCollection; @@ -54,7 +53,6 @@ class User extends Authenticatable implements MustVerifyEmail { use HasFactory, Notifiable; - use SoftDeletes; /** * The attributes that are mass assignable.