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()
Initializes the language setting the memorized language and start translator.
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
at line 16
static
init()
Initializes the language setting the memorized language and start translator.
at line 27
static string
get()
Get the active language.
Determines the language from cookie, HTTP header, or default config.
at line 53
static
set(string $new, bool $skip_cookie = false)
Set the active language.
Updates session, cookies, environment, and locale.