Skip to content

Commit

Permalink
Remove all SoftDeletes (#394)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Gomzyakov <[email protected]>
  • Loading branch information
anacarlaquallio and gomzyakov authored Nov 11, 2024
1 parent c581fa9 commit 8ede5cd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
3 changes: 1 addition & 2 deletions app/Models/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -35,7 +34,7 @@
*/
class Category extends Model
{
use HasFactory, SoftDeletes;
use HasFactory;

protected $table = 'categories';

Expand Down
3 changes: 1 addition & 2 deletions app/Models/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -61,7 +60,7 @@
*/
class Post extends Model
{
use HasFactory, SoftDeletes;
use HasFactory;

protected $table = 'posts';

Expand Down
2 changes: 0 additions & 2 deletions app/Models/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -30,7 +29,6 @@
class Tag extends Model
{
use HasFactory;
use SoftDeletes;

protected $table = 'tags';

Expand Down
2 changes: 0 additions & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -54,7 +53,6 @@
class User extends Authenticatable implements MustVerifyEmail
{
use HasFactory, Notifiable;
use SoftDeletes;

/**
* The attributes that are mass assignable.
Expand Down

0 comments on commit 8ede5cd

Please sign in to comment.