Playlists (#472)

* feat: add playlist resources

* style: fix StyleCI findings

* fix(admin): address nova exceptions
This commit is contained in:
paranarimasu
2022-10-19 00:32:06 -05:00
committed by GitHub
parent 1f7505ac60
commit 517ba0ebf8
512 changed files with 11683 additions and 2520 deletions
-17
View File
@@ -11,7 +11,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Prunable;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Illuminate\Support\Carbon;
/**
@@ -38,22 +37,6 @@ abstract class BaseModel extends Model implements Nameable
final public const ATTRIBUTE_DELETED_AT = 'deleted_at';
final public const ATTRIBUTE_UPDATED_AT = Model::UPDATED_AT;
/**
* Retrieve the model for a bound value.
*
* @param mixed $value
* @param string|null $field
* @return Model|null
*
* @noinspection PhpMissingParentCallCommonInspection
*/
public function resolveRouteBinding($value, $field = null): ?Model
{
return $this->newQuery()->where($field ?? $this->getRouteKeyName(), $value)
->withoutGlobalScope(SoftDeletingScope::class)
->first();
}
/**
* Restore a soft-deleted model instance.
*