v0.5.7 - Made multi language option
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
namespace App;
|
||||
|
||||
//allows the use of many libraries.
|
||||
use http\Env\Request;
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
@@ -52,4 +53,8 @@ class User extends Authenticatable
|
||||
public function setPasswordAttribute($password) {
|
||||
$this->attributes["password"] = Hash::make($password);
|
||||
}
|
||||
|
||||
public function getLocale(\Illuminate\Http\Request $request) {
|
||||
return $request->cookie('languagesSetting');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user