cahng laravel translation, move route for languages from api to web, fix contact formular

This commit is contained in:
Milos Holba
2021-03-23 21:00:25 +01:00
parent df5d5cb75f
commit 4142f829be
17 changed files with 152 additions and 196 deletions
@@ -13,7 +13,7 @@ use App\FileManagerFile;
use App\Http\Tools\Demo;
use App\FileManagerFolder;
use Illuminate\Http\Request;
use App\Mail\SendSupportForm;
use App\Http\Mail\SendSupportForm;
use App\Http\Resources\PageResource;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Cache;
+1 -1
View File
@@ -33,7 +33,7 @@ class AuthController extends Controller
];
// Abort with 404, user not found
return abort('404', __('vuefilemanager.user_not_fount'));
return abort('404', __t('user_not_fount'));
}
/**
@@ -188,7 +188,7 @@ class BrowseController extends Controller
return [
[
'unique_id' => 0,
'name' => __('vuefilemanager.home'),
'name' => __t('home'),
'location' => 'base',
'folders' => $folders,
]
@@ -117,7 +117,7 @@ class FileSharingController extends Controller
// Check password
if (!Hash::check($request->password, $shared->password)) {
abort(401, __('vuefilemanager.incorrect_password'));
abort(401, __t('incorrect_password'));
}
// Get owner of shared content
@@ -258,7 +258,7 @@ class FileSharingController extends Controller
return [
[
'unique_id' => $shared->item_id,
'name' => __('vuefilemanager.home'),
'name' => __t('home'),
'location' => 'public',
'folders' => $folders,
]
@@ -289,7 +289,7 @@ class FileSharingController extends Controller
return [
[
'unique_id' => $shared->item_id,
'name' => __('vuefilemanager.home'),
'name' => __t('home'),
'location' => 'public',
'folders' => $folders,
]