class Model extends Model

Properties

protected $casts
protected $connection

Methods

static 
boot()

No description

_delete(string|null $date = null, string $connection = "tenant")

Illuminate\Database\Eloquent\SoftDeletes updates deleted_at only See main/System/Observers/ModelsObserver.php deleting()

static An
findOr404(int|string $id)

Finds a model or response with 404

User
user()

General method that returns the model user

User
creationUser()

Generic method that returns the user who created the record

syncCategories(array $categories, string|null $class = null)

Generic method that synchronizes the categories of a model

Collection
categories()

Generic method that returns the categories of a model

Details

at line 14
static protected boot()

No description

at line 23
_delete(string|null $date = null, string $connection = "tenant")

Illuminate\Database\Eloquent\SoftDeletes updates deleted_at only See main/System/Observers/ModelsObserver.php deleting()

Parameters

string|null $date
string $connection

at line 40
static An findOr404(int|string $id)

Finds a model or response with 404

Parameters

int|string $id

The model id

Return Value

An

object that represents the model

at line 51
User user()

General method that returns the model user

Return Value

User

at line 60
User creationUser()

Generic method that returns the user who created the record

Return Value

User

at line 70
syncCategories(array $categories, string|null $class = null)

Generic method that synchronizes the categories of a model

Parameters

array $categories
string|null $class

at line 79
Collection categories()

Generic method that returns the categories of a model

Return Value

Collection

of categories