client-update

changes

changes1

page-changes

lock

color

changes-2

footer

page

toggle-remove

display-dropdown

changes

card-changes

card

changes-button

chnages-article

pages

page-404-fix

breadcrumbs-fix

remove drop-down

Apply fixes from StyleCI

buttons

fixes

existing-fix

changes-3

Apply fixes from StyleCI

changes-4
This commit is contained in:
noor
2023-04-13 15:32:30 +05:30
committed by RafficMohammed
parent c5b317db7e
commit 92d0f9cd48
62 changed files with 4820 additions and 749 deletions

View File

@@ -18,6 +18,7 @@ use App\User;
use Hash;
// classes
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Lang;
use Session;
@@ -332,11 +333,11 @@ class UnAuthController extends Controller
*/
public static function changeLanguage($lang)
{
//if(Cache::has('language'))
//{
// return Cache::get('language');
//} else return 'false';
// Cache::put('language',$)
// if(Cache::has('language'))
// {
// return Cache::get('language');
// } else return 'false';
// Cache::put('language',$);
$path = base_path('lang'); // Path to check available language packages
if (array_key_exists($lang, \Config::get('languages')) && in_array($lang, scandir($path))) {
// dd(array_key_exists($lang, Config::get('languages')));
@@ -433,8 +434,8 @@ class UnAuthController extends Controller
{
$path = base_path('lang'); // Path to check available language packages
if (array_key_exists($lang, \Config::get('languages')) && in_array($lang, scandir($path))) {
if (\Auth::check()) {
$id = \Auth::user()->id;
if (Auth::check()) {
$id = Auth::user()->id;
$user = User::find($id);
$user->user_language = $lang;
$user->save();