Language
class Language extends Model
Properties
| protected | $casts | from Model | |
| protected | $connection | from Model | |
| static string|null | $active_language | The currently active language. |
Methods
Illuminate\Database\Eloquent\SoftDeletes updates deleted_at only See main/System/Observers/ModelsObserver.php deleting()
Generic method that synchronizes the categories of a model
Get the active language.
Set the active language.
Details
in
Model at line 14
static protected
boot()
No description
in
Model 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()
in
Model at line 40
static An
findOr404(int|string $id)
Finds a model or response with 404
in
Model at line 51
User
user()
General method that returns the model user
in
Model at line 60
User
creationUser()
Generic method that returns the user who created the record
in
Model at line 70
syncCategories(array $categories, string|null $class = null)
Generic method that synchronizes the categories of a model
in
Model at line 79
Collection
categories()
Generic method that returns the categories of a model
at line 19
static string
get()
Get the active language.
Determines the language from cookie, HTTP header, or default config.
at line 44
static bool
set(string $new)
Set the active language.
Updates session, cookies, environment, and locale.