Skip to content

Commit

Permalink
Rename Model to Models
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkidn committed Dec 7, 2023
1 parent 6e42adc commit 8b612f9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
11 changes: 0 additions & 11 deletions src/Model/Traits/HasOnlineScope.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Codedor\OnlineScope\Model\Scopes;
namespace Codedor\OnlineScope\Models\Scopes;

use Filament\Facades\Filament;
use Illuminate\Database\Eloquent\Builder;
Expand Down
13 changes: 13 additions & 0 deletions src/Models/Traits/HasOnlineScope.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Codedor\OnlineScope\Models\Traits;

use Codedor\OnlineScope\Models\Scopes\OnlineScope;

trait HasOnlineScope
{
public static function bootHasOnlineScope()
{
static::addGlobalScope(new OnlineScope());
}
}

0 comments on commit 8b612f9

Please sign in to comment.