v0.5.7 - Made multi language option

This commit is contained in:
2020-08-06 15:31:38 +02:00
parent 358e47b703
commit 7cc871ae90
26 changed files with 126 additions and 28 deletions
+5
View File
@@ -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');
}
}