├── public ├── favicon.ico ├── robots.txt ├── fonts │ ├── fa-solid-900.eot │ ├── fa-solid-900.ttf │ ├── fa-solid-900.woff │ ├── fa-solid-900.woff2 │ ├── Pe-icon-7-stroke.eot │ ├── Pe-icon-7-stroke.ttf │ ├── Pe-icon-7-stroke.woff │ └── vendor │ │ ├── dropify │ │ └── dist │ │ │ ├── dropify.eot │ │ │ ├── dropify.ttf │ │ │ ├── dropify.woff │ │ │ └── dropify.svg │ │ └── summernote │ │ └── dist │ │ ├── summernote.eot │ │ ├── summernote.ttf │ │ ├── summernote.woff │ │ └── summernote.woff2 ├── mix-manifest.json ├── .htaccess ├── js │ └── script.js └── index.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore ├── debugbar │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── database ├── .gitignore ├── seeders │ ├── DatabaseSeeder.php │ ├── RoleSeeder.php │ ├── UserSeeder.php │ ├── SettingSeeder.php │ └── MenuSeeder.php ├── migrations │ ├── 2020_05_01_135000_create_modules_table.php │ ├── 2020_05_01_135249_create_settings_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2020_05_01_135153_create_menus_table.php │ ├── 2020_05_01_135107_create_roles_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2020_05_01_135056_create_permissions_table.php │ ├── 2020_05_01_135232_create_pages_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2020_05_01_135124_create_permission_role_table.php │ ├── 2020_05_02_103131_create_media_table.php │ └── 2020_05_01_135218_create_menu_items_table.php └── factories │ └── UserFactory.php ├── .gitattributes ├── resources ├── views │ ├── components │ │ ├── forms │ │ │ ├── select-item.blade.php │ │ │ ├── button.blade.php │ │ │ ├── dropify.blade.php │ │ │ ├── select.blade.php │ │ │ ├── textbox.blade.php │ │ │ └── checkbox.blade.php │ │ ├── menu-builder.blade.php │ │ └── backend-side-menu.blade.php │ ├── welcome.blade.php │ ├── layouts │ │ └── backend │ │ │ ├── partials │ │ │ ├── footer.blade.php │ │ │ └── sidebar.blade.php │ │ │ └── app.blade.php │ ├── home.blade.php │ ├── backend │ │ ├── settings │ │ │ └── sidebar.blade.php │ │ └── menus │ │ │ └── builder.blade.php │ ├── auth │ │ ├── verify.blade.php │ │ └── passwords │ │ │ ├── email.blade.php │ │ │ └── confirm.blade.php │ └── vendor │ │ └── lara-izitoast │ │ └── toast.blade.php ├── sass │ ├── frontend.scss │ ├── _variables.scss │ └── app.scss ├── js │ ├── frontend.js │ ├── components │ │ └── ExampleComponent.vue │ ├── script.js │ ├── app.js │ └── bootstrap.js └── lang │ ├── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php │ └── vendor │ └── backup │ ├── zh-CN │ └── notifications.php │ ├── zh-TW │ └── notifications.php │ ├── cs │ └── notifications.php │ ├── da │ └── notifications.php │ ├── hi │ └── notifications.php │ ├── ar │ └── notifications.php │ ├── tr │ └── notifications.php │ ├── fa │ └── notifications.php │ ├── fi │ └── notifications.php │ ├── en │ └── notifications.php │ ├── id │ └── notifications.php │ ├── uk │ └── notifications.php │ ├── de │ └── notifications.php │ ├── it │ └── notifications.php │ ├── ru │ └── notifications.php │ ├── nl │ └── notifications.php │ ├── pt-BR │ └── notifications.php │ ├── pl │ └── notifications.php │ ├── fr │ └── notifications.php │ ├── ro │ └── notifications.php │ └── es │ └── notifications.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .gitignore ├── .styleci.yml ├── .editorconfig ├── app ├── Helpers │ ├── SettingHelper.php │ └── MenuHelper.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── RedirectIfAuthenticated.php │ │ └── AuthGates.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── PageController.php │ │ ├── HomeController.php │ │ ├── Backend │ │ │ ├── DashboardController.php │ │ │ └── ProfileController.php │ │ └── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ ├── Requests │ │ ├── Menus │ │ │ ├── StoreMenuRequest.php │ │ │ ├── UpdateMenuRequest.php │ │ │ ├── StoreMenuItemRequest.php │ │ │ └── UpdateMenuItemRequest.php │ │ ├── Profile │ │ │ ├── UpdatePasswordRequest.php │ │ │ └── UpdateProfileRequest.php │ │ ├── Settings │ │ │ ├── UpdateAppearanceRequest.php │ │ │ ├── UpdateGeneralSettingsRequest.php │ │ │ ├── UpdateSocialiteSettingsRequest.php │ │ │ └── UpdateMailSettingsRequest.php │ │ ├── Pages │ │ │ ├── StorePageRequest.php │ │ │ └── UpdatePageRequest.php │ │ ├── Users │ │ │ ├── StoreUserRequest.php │ │ │ └── UpdateUserRequest.php │ │ └── Roles │ │ │ ├── StoreRoleRequest.php │ │ │ └── UpdateRoleRequest.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ ├── AppServiceProvider.php │ └── RouteServiceProvider.php ├── View │ └── Components │ │ ├── MenuBuilder.php │ │ ├── BackendSideMenu.php │ │ └── Forms │ │ ├── Select.php │ │ ├── SelectItem.php │ │ ├── Dropify.php │ │ ├── Button.php │ │ ├── Checkbox.php │ │ └── Textbox.php ├── Console │ └── Kernel.php ├── Models │ ├── Menu.php │ ├── Page.php │ ├── Module.php │ ├── Permission.php │ ├── MenuItem.php │ ├── Role.php │ └── User.php └── Exceptions │ └── Handler.php ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── server.php ├── config ├── lara-izitoast.php ├── cors.php ├── view.php ├── services.php ├── hashing.php ├── broadcasting.php └── filesystems.php ├── webpack.mix.js ├── .env.example ├── phpunit.xml ├── package.json ├── artisan └── composer.json /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /public/fonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/fa-solid-900.eot -------------------------------------------------------------------------------- /public/fonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /public/fonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/fa-solid-900.woff -------------------------------------------------------------------------------- /public/fonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /public/fonts/Pe-icon-7-stroke.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/Pe-icon-7-stroke.eot -------------------------------------------------------------------------------- /public/fonts/Pe-icon-7-stroke.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/Pe-icon-7-stroke.ttf -------------------------------------------------------------------------------- /public/fonts/Pe-icon-7-stroke.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/Pe-icon-7-stroke.woff -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /public/fonts/vendor/dropify/dist/dropify.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/dropify/dist/dropify.eot -------------------------------------------------------------------------------- /public/fonts/vendor/dropify/dist/dropify.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/dropify/dist/dropify.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/dropify/dist/dropify.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/dropify/dist/dropify.woff -------------------------------------------------------------------------------- /public/fonts/vendor/summernote/dist/summernote.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/summernote/dist/summernote.eot -------------------------------------------------------------------------------- /public/fonts/vendor/summernote/dist/summernote.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/summernote/dist/summernote.ttf -------------------------------------------------------------------------------- /public/fonts/vendor/summernote/dist/summernote.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/summernote/dist/summernote.woff -------------------------------------------------------------------------------- /public/fonts/vendor/summernote/dist/summernote.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cipfahim/larastarter/HEAD/public/fonts/vendor/summernote/dist/summernote.woff2 -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /resources/views/components/forms/select-item.blade.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css", 4 | "/css/frontend.css": "/css/frontend.css", 5 | "/js/script.js": "/js/script.js" 6 | } 7 | -------------------------------------------------------------------------------- /resources/sass/frontend.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import '~bootstrap/scss/bootstrap'; 9 | -------------------------------------------------------------------------------- /resources/views/components/forms/button.blade.php: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/Helpers/SettingHelper.php: -------------------------------------------------------------------------------- 1 | first(); 14 | return $menu->menuItems()->with('childs')->get(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /resources/js/frontend.js: -------------------------------------------------------------------------------- 1 | /** 2 | * We'll load jQuery and the Bootstrap jQuery plugin which provides support 3 | * for JavaScript based Bootstrap features such as modals and tabs. This 4 | * code may be modified to fit the specific needs of your application. 5 | */ 6 | 7 | try { 8 | window.Popper = require('popper.js').default; 9 | 10 | require('bootstrap'); 11 | } catch (e) {} 12 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Controllers/PageController.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | @error("$name") 10 | 11 | {{ $message }} 12 | 13 | @enderror 14 | 15 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | call(SettingSeeder::class); 17 | $this->call(PermissionSeeder::class); 18 | $this->call(RoleSeeder::class); 19 | $this->call(UserSeeder::class); 20 | $this->call(MenuSeeder::class); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.frontend.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Welcome to {{ config('settings.app_name') }}
9 | 10 |
11 | Build something awesome :) 12 |
13 |
14 |
15 |
16 |
17 | @endsection 18 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /resources/views/components/forms/select.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 12 | @error("$name") 13 | 14 | {{ $message }} 15 | 16 | @enderror 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /server.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /resources/views/components/forms/textbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 12 | @error("$name") 13 | 14 | {{ $message }} 15 | 16 | @enderror 17 |
18 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->describe('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /config/lara-izitoast.php: -------------------------------------------------------------------------------- 1 | '', 11 | 'messageColor' => '', 12 | 'titleSize' => '14', 13 | 'messageSize' => '16', 14 | 'titleLineHeight' => '38', 15 | 'messageLineHeight' => '38', 16 | 'transitionIn' => 'flipInX', 17 | 'transitionOut' => 'flipOutX', 18 | 'zindex' => null, 19 | 'closeOnClick' => true, 20 | 'timeout' => 5000, 21 | 'drag' => true, 22 | 'position' => "bottomRight", //bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter or center. 23 | 'progressBar' => true, 24 | ]; 25 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /database/seeders/RoleSeeder.php: -------------------------------------------------------------------------------- 1 | 'Admin', 'slug' => 'admin', 'deletable' => false]) 20 | ->permissions() 21 | ->sync($admin_permissions->pluck('id')); 22 | 23 | Role::updateOrCreate(['name' => 'User', 'slug' => 'user', 'deletable' => false]); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /resources/views/components/forms/checkbox.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 | 10 | 11 |
12 | @error("$name") 13 | 14 | {{ $message }} 15 | 16 | @enderror 17 |
18 | 19 | -------------------------------------------------------------------------------- /resources/views/layouts/backend/partials/footer.blade.php: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 22 | return redirect(RouteServiceProvider::HOME); 23 | } 24 | 25 | return $next($request); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Http/Controllers/Backend/DashboardController.php: -------------------------------------------------------------------------------- 1 | take(10)->get(); 22 | return view('backend.dashboard', $data); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.frontend.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
Dashboard
9 | 10 |
11 | @if (session('status')) 12 | 15 | @endif 16 | 17 | You are logged in! 18 |
19 |
20 |
21 |
22 |
23 | @endsection 24 | -------------------------------------------------------------------------------- /app/View/Components/MenuBuilder.php: -------------------------------------------------------------------------------- 1 | menuItems = $menuItems; 24 | } 25 | 26 | /** 27 | * Get the view / contents that represent the component. 28 | * 29 | * @return \Illuminate\View\View|string 30 | */ 31 | public function render() 32 | { 33 | return view('components.menu-builder'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name')->unique(); 19 | $table->timestamps(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('modules'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /public/js/script.js: -------------------------------------------------------------------------------- 1 | function deleteData(id) { 2 | Swal.fire({ 3 | title: 'Are you sure?', 4 | text: "You won't be able to revert this!", 5 | icon: 'warning', 6 | showCancelButton: true, 7 | confirmButtonColor: '#3085d6', 8 | cancelButtonColor: '#d33', 9 | confirmButtonText: 'Yes, delete it!' 10 | }).then((result) => { 11 | if (result.value) { 12 | document.getElementById('delete-form-' + id).submit(); 13 | } 14 | }) 15 | } 16 | 17 | function resetForm(formId) { 18 | document.getElementById(formId).reset(); 19 | } 20 | 21 | $(document).ready(function() { 22 | // Dropify 23 | $('.dropify').dropify(); 24 | 25 | // Select2 26 | $('.select').each(function () { 27 | $(this).select2(); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /resources/js/script.js: -------------------------------------------------------------------------------- 1 | function deleteData(id) { 2 | Swal.fire({ 3 | title: 'Are you sure?', 4 | text: "You won't be able to revert this!", 5 | icon: 'warning', 6 | showCancelButton: true, 7 | confirmButtonColor: '#3085d6', 8 | cancelButtonColor: '#d33', 9 | confirmButtonText: 'Yes, delete it!' 10 | }).then((result) => { 11 | if (result.value) { 12 | document.getElementById('delete-form-' + id).submit(); 13 | } 14 | }) 15 | } 16 | 17 | function resetForm(formId) { 18 | document.getElementById(formId).reset(); 19 | } 20 | 21 | $(document).ready(function() { 22 | // Dropify 23 | $('.dropify').dropify(); 24 | 25 | // Select2 26 | $('.select').each(function () { 27 | $(this).select2(); 28 | }); 29 | }); 30 | -------------------------------------------------------------------------------- /app/View/Components/BackendSideMenu.php: -------------------------------------------------------------------------------- 1 | 'required|string|unique:menus', 30 | 'description' => 'nullable|string' 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Requests/Profile/UpdatePasswordRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 30 | 'password' => 'required|confirmed', 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /app/Http/Requests/Settings/UpdateAppearanceRequest.php: -------------------------------------------------------------------------------- 1 | ['nullable', 'image'], 30 | 'site_favicon' => ['nullable', 'image'] 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135249_create_settings_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->text('value')->nullable(); 20 | $table->timestamps(); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('settings'); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Requests/Menus/UpdateMenuRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|unique:menus,id,' . request()->route('menu')->id, 30 | 'description' => 'nullable|string' 31 | ]; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /resources/views/backend/settings/sidebar.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | General 4 | 5 | 6 | Appearance 7 | 8 | 9 | Mail 10 | 11 | 12 | Socialite 13 | 14 |
15 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | parent::boot(); 31 | 32 | // 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | role->slug == $role; 35 | }); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | $this->faker->name, 27 | 'email' => $this->faker->unique()->safeEmail, 28 | 'email_verified_at' => now(), 29 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 30 | 'remember_token' => Str::random(10), 31 | ]; 32 | } 33 | } -------------------------------------------------------------------------------- /app/Http/Requests/Pages/StorePageRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string', 30 | 'slug' => 'required|string|unique:pages', 31 | 'body' => 'required|string', 32 | 'image' => 'nullable|image' 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135153_create_menus_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name')->unique(); 19 | $table->string('description')->nullable(); 20 | $table->boolean('deletable')->default(true); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('menus'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Requests/Settings/UpdateGeneralSettingsRequest.php: -------------------------------------------------------------------------------- 1 | 'string|min:2|max:255', 30 | 'site_description' => 'string|nullable|min:2|max:255', 31 | 'site_address' => 'nullable|string|min:2|max:255', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Requests/Menus/StoreMenuItemRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|unique:menu_items', 30 | 'url' => 'required|string|unique:menu_items', 31 | 'target' => 'required|string', 32 | 'icon_class' => 'nullable|string', 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Requests/Pages/UpdatePageRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string', 30 | 'slug' => 'required|string|unique:pages,slug,' . request()->route('page')->id, 31 | 'body' => 'required|string', 32 | 'image' => 'nullable|image' 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135107_create_roles_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('slug')->unique(); 20 | $table->string('description')->nullable(); 21 | $table->boolean('deletable')->default(true); 22 | $table->timestamps(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('roles'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Http/Requests/Profile/UpdateProfileRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 31 | 'email' => 'required|string|email|max:255|unique:users,email,' . Auth::id(), 32 | 'avatar' => 'nullable|image' 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /app/Http/Middleware/AuthGates.php: -------------------------------------------------------------------------------- 1 | $permission) { 26 | Gate::define($permission->slug, function (User $user) use ($permission) { 27 | return $user->hasPermission($permission->slug); 28 | }); 29 | } 30 | } 31 | return $next($request); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | 'required|string|unique:menu_items,title,'.request('itemId'), 30 | 'url' => 'required|string|unique:menu_items,url,'.request('itemId'), 31 | 'target' => 'required|string', 32 | 'icon_class' => 'nullable|string', 33 | ]; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 28 | } 29 | 30 | /** 31 | * Register the commands for the application. 32 | * 33 | * @return void 34 | */ 35 | protected function commands() 36 | { 37 | $this->load(__DIR__.'/Commands'); 38 | 39 | require base_path('routes/console.php'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /app/Http/Requests/Users/StoreUserRequest.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'max:255'], 30 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 31 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 32 | 'role' => ['required'], 33 | 'avatar' => ['required','image'], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Http/Requests/Roles/StoreRoleRequest.php: -------------------------------------------------------------------------------- 1 | [ 30 | 'required', 31 | 'unique:roles' 32 | ], 33 | 'permissions.*' => [ 34 | 'integer', 35 | ], 36 | 'permissions' => [ 37 | 'required', 38 | 'array', 39 | ], 40 | ]; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('uuid')->after('id')->nullable()->unique(); 19 | $table->text('connection'); 20 | $table->text('queue'); 21 | $table->longText('payload'); 22 | $table->longText('exception'); 23 | $table->timestamp('failed_at')->useCurrent(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('failed_jobs'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Http/Requests/Users/UpdateUserRequest.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'max:255'], 30 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users,email,' . request()->route('user')->id], 31 | 'password' => ['nullable', 'string', 'min:8', 'confirmed'], 32 | 'role' => ['required'], 33 | 'avatar' => ['nullable', 'image'], 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Http/Requests/Roles/UpdateRoleRequest.php: -------------------------------------------------------------------------------- 1 | [ 30 | 'required', 31 | 'unique:roles,name,'.request()->route('role')->id 32 | ], 33 | 'permissions.*' => [ 34 | 'integer', 35 | ], 36 | 'permissions' => [ 37 | 'required', 38 | 'array', 39 | ], 40 | ]; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135056_create_permissions_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->unsignedBigInteger('module_id'); 19 | $table->string('name'); 20 | $table->string('slug')->unique(); 21 | $table->timestamps(); 22 | 23 | $table->foreign('module_id') 24 | ->references('id') 25 | ->on('modules') 26 | ->onDelete('cascade'); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('permissions'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/seeders/UserSeeder.php: -------------------------------------------------------------------------------- 1 | first(); 20 | // Create admin 21 | User::updateOrCreate([ 22 | 'role_id' => $adminRole->id, 23 | 'name' => 'Admin', 24 | 'email' => 'admin@mail.com', 25 | 'password' => Hash::make('password'), 26 | 'status' => true 27 | ]); 28 | 29 | // Create user 30 | $userRole = Role::where('slug','user')->first(); 31 | User::updateOrCreate([ 32 | 'role_id' => $userRole->id, 33 | 'name' => 'Jone Doe', 34 | 'email' => 'user@mail.com', 35 | 'password' => Hash::make('password'), 36 | 'status' => true 37 | ]); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Http/Requests/Settings/UpdateSocialiteSettingsRequest.php: -------------------------------------------------------------------------------- 1 | 'string|nullable', 30 | 'facebook_client_secret' => 'string|nullable', 31 | 32 | 'google_client_id' => 'string|nullable', 33 | 'google_client_secret' => 'string|nullable', 34 | 35 | 'github_client_id' => 'string|nullable', 36 | 'github_client_secret' => 'string|nullable', 37 | ]; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135232_create_pages_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('title'); 19 | $table->string('slug')->unique(); 20 | $table->text('excerpt')->nullable(); 21 | $table->longText('body')->nullable(); 22 | $table->text('meta_description')->nullable(); 23 | $table->text('meta_keywords')->nullable(); 24 | $table->boolean('status')->default(false); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('pages'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=LaraStarter 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=larastarter_db 13 | DB_USERNAME=root 14 | DB_PASSWORD= 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_MAILER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | MAIL_FROM_ADDRESS=null 33 | MAIL_FROM_NAME="${APP_NAME}" 34 | 35 | AWS_ACCESS_KEY_ID= 36 | AWS_SECRET_ACCESS_KEY= 37 | AWS_DEFAULT_REGION=us-east-1 38 | AWS_BUCKET= 39 | 40 | PUSHER_APP_ID= 41 | PUSHER_APP_KEY= 42 | PUSHER_APP_SECRET= 43 | PUSHER_APP_CLUSTER=mt1 44 | 45 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 46 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 47 | 48 | FACEBOOK_CLIENT_ID= 49 | FACEBOOK_CLIENT_SECRET= 50 | 51 | GOOGLE_CLIENT_ID= 52 | GOOGLE_CLIENT_SECRET= 53 | 54 | GITHUB_CLIENT_ID= 55 | GITHUB_CLIENT_SECRET= 56 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->unsignedBigInteger('role_id'); 19 | $table->string('name'); 20 | $table->string('email')->unique(); 21 | $table->timestamp('email_verified_at')->nullable(); 22 | $table->string('password')->nullable(); 23 | $table->boolean('status')->default(false); 24 | $table->rememberToken(); 25 | $table->timestamp('last_login_at')->nullable(); 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('users'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /app/Http/Requests/Settings/UpdateMailSettingsRequest.php: -------------------------------------------------------------------------------- 1 | 'string|max:255', 30 | 'mail_host' => 'nullable|string|max:255', 31 | 'mail_port' => 'nullable|numeric', 32 | 'mail_username' => 'nullable|string|max:255', 33 | 'mail_password' => 'nullable|max:255', 34 | 'mail_encryption' => 'nullable|string|max:255', 35 | 'mail_from_address' => 'nullable|email|max:255', 36 | 'mail_from_name' => 'nullable|string|max:255', 37 | ]; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * First we will load all of this project's JavaScript dependencies which 3 | * includes Vue and other libraries. It is a great starting point when 4 | * building robust, powerful web applications using Vue and Laravel. 5 | */ 6 | 7 | require('./bootstrap'); 8 | window.Vue = require('vue'); 9 | 10 | /** 11 | * The following block of code may be used to automatically register your 12 | * Vue components. It will recursively scan this directory for the Vue 13 | * components and automatically register them with their "basename". 14 | * 15 | * Eg. ./components/ExampleComponent.vue -> 16 | */ 17 | 18 | // const files = require.context('./', true, /\.vue$/i) 19 | // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) 20 | 21 | Vue.component('example-component', require('./components/ExampleComponent.vue').default); 22 | 23 | /** 24 | * Next, we will create a fresh Vue application instance and attach it to 25 | * the page. Then, you may begin adding components to this application 26 | * or customize the JavaScript scaffolding to fit your unique needs. 27 | */ 28 | 29 | const app = new Vue({ 30 | el: '#app', 31 | }); 32 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135124_create_permission_role_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->unsignedBigInteger('permission_id'); 19 | $table->unsignedBigInteger('role_id'); 20 | $table->timestamps(); 21 | 22 | $table->foreign('permission_id') 23 | ->references('id') 24 | ->on('permissions') 25 | ->onDelete('cascade'); 26 | $table->foreign('role_id') 27 | ->references('id') 28 | ->on('roles') 29 | ->onDelete('cascade'); 30 | }); 31 | } 32 | 33 | /** 34 | * Reverse the migrations. 35 | * 36 | * @return void 37 | */ 38 | public function down() 39 | { 40 | Schema::dropIfExists('permission_role'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.frontend.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify Your Email Address') }}
9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, 19 |
20 | @csrf 21 | . 22 |
23 |
24 |
25 |
26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('welcome'); 22 | 23 | Auth::routes(); 24 | // Socialite routes 25 | Route::group(['as' => 'login.', 'prefix' => 'login', 'namespace' => 'Auth'], function () { 26 | Route::get('/{provider}', [LoginController::class, 'redirectToProvider'])->name('provider'); 27 | Route::get('/{provider}/callback', [LoginController::class, 'handleProviderCallback'])->name('callback'); 28 | }); 29 | 30 | Route::get('/home', [HomeController::class, 'index'])->name('home'); 31 | 32 | // Pages route e.g. [about,contact,etc] 33 | Route::get('/{slug}', PageController::class)->name('page'); 34 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Models/Menu.php: -------------------------------------------------------------------------------- 1 | hasMany(MenuItem::class) 24 | ->doesntHave('parent') 25 | ->orderBy('order','asc'); 26 | } 27 | 28 | /** 29 | * Flush the cache 30 | */ 31 | public static function flushCache() 32 | { 33 | Cache::forget('backend.sidebar.menu'); 34 | } 35 | 36 | /** 37 | * The "booting" method of the model. 38 | * 39 | * @return void 40 | */ 41 | protected static function boot() 42 | { 43 | parent::boot(); 44 | 45 | static::updated(function () { 46 | self::flushCache(); 47 | }); 48 | 49 | static::created(function() { 50 | self::flushCache(); 51 | }); 52 | 53 | static::deleted(function() { 54 | self::flushCache(); 55 | }); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | window._ = require('lodash'); 2 | 3 | try { 4 | window.$ = window.jQuery = require('jquery'); 5 | window.iziToast = require('izitoast/dist/js/iziToast.min.js'); 6 | window.Swal = require('sweetalert2'); 7 | require('select2'); 8 | // Dropify 9 | require('dropify/src/js/dropify'); 10 | // Nestable 11 | require('nestable2/jquery.nestable'); 12 | } catch (e) {} 13 | 14 | /** 15 | * We'll load the axios HTTP library which allows us to easily issue requests 16 | * to our Laravel back-end. This library automatically handles sending the 17 | * CSRF token as a header based on the value of the "XSRF" token cookie. 18 | */ 19 | 20 | window.axios = require('axios'); 21 | 22 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 23 | 24 | /** 25 | * Echo exposes an expressive API for subscribing to channels and listening 26 | * for events that are broadcast by Laravel. Echo and event broadcasting 27 | * allows your team to easily build robust real-time web applications. 28 | */ 29 | 30 | // import Echo from 'laravel-echo'; 31 | 32 | // window.Pusher = require('pusher-js'); 33 | 34 | // window.Echo = new Echo({ 35 | // broadcaster: 'pusher', 36 | // key: process.env.MIX_PUSHER_APP_KEY, 37 | // cluster: process.env.MIX_PUSHER_APP_CLUSTER, 38 | // forceTLS: true 39 | // }); 40 | -------------------------------------------------------------------------------- /app/View/Components/Forms/Select.php: -------------------------------------------------------------------------------- 1 | label = $label; 48 | $this->name = $name; 49 | $this->class = $class; 50 | $this->placeholder = $placeholder; 51 | } 52 | 53 | /** 54 | * Get the view / contents that represent the component. 55 | * 56 | * @return \Illuminate\View\View|string 57 | */ 58 | public function render() 59 | { 60 | return view('components.forms.select'); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /resources/views/vendor/lara-izitoast/toast.blade.php: -------------------------------------------------------------------------------- 1 | 37 | 38 | {{ session()->forget('toasts') }} 39 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | addMediaCollection('image') 26 | ->singleFile() 27 | ->useFallbackUrl(config('app.placeholder').'800.png') 28 | ->useFallbackPath(config('app.placeholder').'800.png'); 29 | } 30 | 31 | /** 32 | * Find page by slug. 33 | * 34 | * @param $slug 35 | * @return mixed 36 | */ 37 | public static function findBySlug($slug) 38 | { 39 | return self::where('slug',$slug)->firstOrFail(); 40 | } 41 | 42 | /** 43 | * Scope a query to only include active pages. 44 | * 45 | * @param \Illuminate\Database\Eloquent\Builder $query 46 | * @return \Illuminate\Database\Eloquent\Builder 47 | */ 48 | public function scopeActive($query) 49 | { 50 | return $query->where('status', true); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /database/migrations/2020_05_02_103131_create_media_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | 19 | $table->morphs('model'); 20 | $table->uuid('uuid')->nullable(); 21 | $table->string('collection_name'); 22 | $table->string('name'); 23 | $table->string('file_name'); 24 | $table->string('mime_type')->nullable(); 25 | $table->string('disk'); 26 | $table->string('conversions_disk')->nullable(); 27 | $table->unsignedBigInteger('size'); 28 | $table->json('manipulations'); 29 | $table->json('custom_properties'); 30 | $table->json('responsive_images'); 31 | $table->unsignedInteger('order_column')->nullable(); 32 | 33 | $table->nullableTimestamps(); 34 | }); 35 | } 36 | 37 | /** 38 | * Reverse the migrations. 39 | * 40 | * @return void 41 | */ 42 | public function down() 43 | { 44 | Schema::dropIfExists('media'); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /database/migrations/2020_05_01_135218_create_menu_items_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->unsignedBigInteger('menu_id'); 19 | $table->enum('type',['item','divider'])->default('item'); 20 | $table->integer('parent_id')->nullable(); 21 | $table->integer('order')->nullable(); 22 | $table->string('title')->nullable(); 23 | $table->string('divider_title')->nullable(); 24 | $table->string('url')->nullable(); 25 | $table->string('target')->default("_self"); 26 | $table->string('icon_class')->nullable(); 27 | $table->timestamps(); 28 | 29 | $table->foreign('menu_id') 30 | ->references('id') 31 | ->on('menus') 32 | ->onDelete('cascade'); 33 | }); 34 | } 35 | 36 | /** 37 | * Reverse the migrations. 38 | * 39 | * @return void 40 | */ 41 | public function down() 42 | { 43 | Schema::dropIfExists('menu_items'); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.19.2", 14 | "bootstrap": "^4.4.1", 15 | "cross-env": "^7.0.2", 16 | "dropify": "^0.2.2", 17 | "izitoast": "^1.4.0", 18 | "jquery": "^3.5.0", 19 | "laravel-mix": "^5.0.4", 20 | "lodash": "^4.17.15", 21 | "nestable2": "^1.6.0", 22 | "popper.js": "^1.16.1", 23 | "resolve-url-loader": "^3.1.1", 24 | "sass": "^1.26.5", 25 | "sass-loader": "^8.0.2", 26 | "select2": "^4.0.13", 27 | "sweetalert2": "^9.10.12", 28 | "vue": "^2.6.11", 29 | "vue-template-compiler": "^2.6.11" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/View/Components/Forms/SelectItem.php: -------------------------------------------------------------------------------- 1 | value = $value; 41 | $this->label = $label; 42 | $this->selected = $selected; 43 | } 44 | 45 | /** 46 | * Determine if the given option is the current selected option. 47 | * 48 | * @param string $option 49 | * @return bool 50 | */ 51 | public function isSelected($option) 52 | { 53 | return $option === $this->selected; 54 | } 55 | 56 | /** 57 | * Get the view / contents that represent the component. 58 | * 59 | * @return \Illuminate\View\View|string 60 | */ 61 | public function render() 62 | { 63 | return view('components.forms.select-item'); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/Models/Module.php: -------------------------------------------------------------------------------- 1 | get(); 27 | }); 28 | } 29 | 30 | /** 31 | * Flush the cache 32 | */ 33 | public static function flushCache() 34 | { 35 | Cache::forget('permissions.getWithPermissions'); 36 | } 37 | 38 | /** 39 | * The "booting" method of the model. 40 | * 41 | * @return void 42 | */ 43 | protected static function boot() 44 | { 45 | parent::boot(); 46 | 47 | static::updated(function () { 48 | self::flushCache(); 49 | }); 50 | 51 | static::created(function() { 52 | self::flushCache(); 53 | }); 54 | 55 | static::deleted(function() { 56 | self::flushCache(); 57 | }); 58 | } 59 | 60 | public function permissions() 61 | { 62 | return $this->hasMany(Permission::class); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /app/Models/Permission.php: -------------------------------------------------------------------------------- 1 | belongsTo(Module::class); 62 | } 63 | public function roles() 64 | { 65 | return $this->belongsToMany(Role::class); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /app/View/Components/Forms/Dropify.php: -------------------------------------------------------------------------------- 1 | label = $label; 56 | $this->name = $name; 57 | $this->class = $class; 58 | $this->value = $value; 59 | $this->fieldAttributes = $fieldAttributes; 60 | } 61 | 62 | /** 63 | * Get the view / contents that represent the component. 64 | * 65 | * @return \Illuminate\View\View|string 66 | */ 67 | public function render() 68 | { 69 | return view('components.forms.dropify'); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /resources/views/layouts/backend/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | 9 | 10 | @yield('title') | {{ setting('site_title', 'LaraStarter') }} 11 | 12 | 13 | 14 | 15 | 16 | @stack('css') 17 | 18 | 19 |
20 | @include('layouts.backend.partials.header') 21 |
22 | @include('layouts.backend.partials.sidebar') 23 |
24 |
25 | @yield('content') 26 |
27 | @include('layouts.backend.partials.footer') 28 |
29 |
30 |
31 | 32 | 33 | 34 | 35 | @stack('js') 36 | @include('vendor.lara-izitoast.toast') 37 | 38 | 39 | -------------------------------------------------------------------------------- /app/View/Components/Forms/Button.php: -------------------------------------------------------------------------------- 1 | type = $type; 57 | $this->label = $label; 58 | $this->class = $class; 59 | $this->iconClass = $iconClass; 60 | $this->onClick = $onClick; 61 | } 62 | 63 | /** 64 | * Get the view / contents that represent the component. 65 | * 66 | * @return \Illuminate\View\View|string 67 | */ 68 | public function render() 69 | { 70 | return view('components.forms.button'); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /resources/views/layouts/backend/partials/sidebar.blade.php: -------------------------------------------------------------------------------- 1 | 42 | -------------------------------------------------------------------------------- /resources/views/components/menu-builder.blade.php: -------------------------------------------------------------------------------- 1 |
    2 | @forelse($menuItems as $item) 3 |
  1. 4 |
    5 | 9 | 14 | 15 | 16 | Edit 17 | 18 |
    19 |
    20 | @if ($item->type == 'divider') 21 | Divider: {{ $item->divider_title }} 22 | @else 23 | {{ $item->title }} {{ $item->url }} 24 | @endif 25 |
    26 | @if(!$item->childs->isEmpty()) 27 | 28 | @endif 29 |
  2. 30 | @empty 31 |
    32 | No menu item found. 33 |
    34 | @endforelse 35 |
36 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | 'facebook' => [ 34 | 'client_id' => env('FACEBOOK_CLIENT_ID'), 35 | 'client_secret' => env('FACEBOOK_CLIENT_SECRET'), 36 | 'redirect' => env('APP_URL').'/login/facebook/callback', 37 | ], 38 | 39 | 'google' => [ 40 | 'client_id' => env('GOOGLE_CLIENT_ID'), 41 | 'client_secret' => env('GOOGLE_CLIENT_SECRET'), 42 | 'redirect' => env('APP_URL').'/login/google/callback', 43 | ], 44 | 45 | 'github' => [ 46 | 'client_id' => env('GITHUB_CLIENT_ID'), 47 | 'client_secret' => env('GITHUB_CLIENT_SECRET'), 48 | 'redirect' => env('APP_URL').'/login/github/callback', 49 | ], 50 | 51 | ]; 52 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // izitoast 2 | @import '~izitoast/dist/css/iziToast.min.css'; 3 | 4 | // Select2 5 | @import '~select2/dist/css/select2.min.css'; 6 | 7 | // Dropify 8 | @import '~dropify/dist/css/dropify.min.css'; 9 | .dropify-wrapper .dropify-message p { 10 | font-size: initial; 11 | } 12 | 13 | // nestable2 14 | @import '~nestable2/jquery.nestable'; 15 | 16 | // menu builder 17 | .menu-builder .dd { 18 | position: relative; 19 | display: block; 20 | margin: 0; 21 | padding: 0; 22 | max-width: inherit; 23 | list-style: none; 24 | font-size: 13px; 25 | line-height: 20px; 26 | } 27 | .menu-builder .dd .item_actions { 28 | z-index: 9; 29 | position: relative; 30 | top: 10px; 31 | right: 10px; 32 | } 33 | .menu-builder .dd .item_actions .edit { 34 | margin-right: 5px; 35 | } 36 | .menu-builder .dd-handle { 37 | display: block; 38 | height: 50px; 39 | margin: 5px 0; 40 | padding: 14px 25px; 41 | color: #333; 42 | text-decoration: none; 43 | font-weight: 700; 44 | border: 1px solid #ccc; 45 | background: #fafafa; 46 | border-radius: 3px; 47 | box-sizing: border-box; 48 | -moz-box-sizing: border-box; 49 | } 50 | 51 | .closed-sidebar:not(.closed-sidebar-mobile) .app-header .app-header__logo .navbar-brand { 52 | display: none; 53 | } 54 | 55 | // DataTables style 56 | .dataTables_wrapper .dataTables_length { 57 | padding-top: 1rem; 58 | padding-left: 1rem; 59 | } 60 | .dataTables_wrapper .dataTables_filter { 61 | padding-top: 1rem; 62 | padding-right: 1rem; 63 | } 64 | .dataTables_wrapper .dataTables_info { 65 | padding-left: 1rem; 66 | padding-bottom: 1rem; 67 | } 68 | .dataTables_wrapper .dataTables_paginate { 69 | padding-right: 1rem; 70 | } 71 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/zh-CN/notifications.php: -------------------------------------------------------------------------------- 1 | '异常信息: :message', 5 | 'exception_trace' => '异常跟踪: :trace', 6 | 'exception_message_title' => '异常信息', 7 | 'exception_trace_title' => '异常跟踪', 8 | 9 | 'backup_failed_subject' => ':application_name 备份失败', 10 | 'backup_failed_body' => '重要说明:备份 :application_name 时发生错误', 11 | 12 | 'backup_successful_subject' => ':application_name 备份成功', 13 | 'backup_successful_subject_title' => '备份成功!', 14 | 'backup_successful_body' => '好消息, :application_name 备份成功,位于磁盘 :disk_name 中。', 15 | 16 | 'cleanup_failed_subject' => '清除 :application_name 的备份失败。', 17 | 'cleanup_failed_body' => '清除备份 :application_name 时发生错误', 18 | 19 | 'cleanup_successful_subject' => '成功清除 :application_name 的备份', 20 | 'cleanup_successful_subject_title' => '成功清除备份!', 21 | 'cleanup_successful_body' => '成功清除 :disk_name 磁盘上 :application_name 的备份。', 22 | 23 | 'healthy_backup_found_subject' => ':disk_name 磁盘上 :application_name 的备份是健康的', 24 | 'healthy_backup_found_subject_title' => ':application_name 的备份是健康的', 25 | 'healthy_backup_found_body' => ':application_name 的备份是健康的。干的好!', 26 | 27 | 'unhealthy_backup_found_subject' => '重要说明::application_name 的备份不健康', 28 | 'unhealthy_backup_found_subject_title' => '重要说明::application_name 备份不健康。 :problem', 29 | 'unhealthy_backup_found_body' => ':disk_name 磁盘上 :application_name 的备份不健康。', 30 | 'unhealthy_backup_found_not_reachable' => '无法访问备份目标。 :error', 31 | 'unhealthy_backup_found_empty' => '根本没有此应用程序的备份。', 32 | 'unhealthy_backup_found_old' => '最近的备份创建于 :date ,太旧了。', 33 | 'unhealthy_backup_found_unknown' => '对不起,确切原因无法确定。', 34 | 'unhealthy_backup_found_full' => '备份占用了太多存储空间。当前占用了 :disk_usage ,高于允许的限制 :disk_limit。', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/zh-TW/notifications.php: -------------------------------------------------------------------------------- 1 | '異常訊息: :message', 5 | 'exception_trace' => '異常追蹤: :trace', 6 | 'exception_message_title' => '異常訊息', 7 | 'exception_trace_title' => '異常追蹤', 8 | 9 | 'backup_failed_subject' => ':application_name 備份失敗', 10 | 'backup_failed_body' => '重要說明:備份 :application_name 時發生錯誤', 11 | 12 | 'backup_successful_subject' => ':application_name 備份成功', 13 | 'backup_successful_subject_title' => '備份成功!', 14 | 'backup_successful_body' => '好消息, :application_name 備份成功,位於磁盤 :disk_name 中。', 15 | 16 | 'cleanup_failed_subject' => '清除 :application_name 的備份失敗。', 17 | 'cleanup_failed_body' => '清除備份 :application_name 時發生錯誤', 18 | 19 | 'cleanup_successful_subject' => '成功清除 :application_name 的備份', 20 | 'cleanup_successful_subject_title' => '成功清除備份!', 21 | 'cleanup_successful_body' => '成功清除 :disk_name 磁盤上 :application_name 的備份。', 22 | 23 | 'healthy_backup_found_subject' => ':disk_name 磁盤上 :application_name 的備份是健康的', 24 | 'healthy_backup_found_subject_title' => ':application_name 的備份是健康的', 25 | 'healthy_backup_found_body' => ':application_name 的備份是健康的。幹的好!', 26 | 27 | 'unhealthy_backup_found_subject' => '重要說明::application_name 的備份不健康', 28 | 'unhealthy_backup_found_subject_title' => '重要說明::application_name 備份不健康。 :problem', 29 | 'unhealthy_backup_found_body' => ':disk_name 磁盤上 :application_name 的備份不健康。', 30 | 'unhealthy_backup_found_not_reachable' => '無法訪問備份目標。 :error', 31 | 'unhealthy_backup_found_empty' => '根本沒有此應用程序的備份。', 32 | 'unhealthy_backup_found_old' => '最近的備份創建於 :date ,太舊了。', 33 | 'unhealthy_backup_found_unknown' => '對不起,確切原因無法確定。', 34 | 'unhealthy_backup_found_full' => '備份佔用了太多存儲空間。當前佔用了 :disk_usage ,高於允許的限制 :disk_limit。', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/View/Components/Forms/Checkbox.php: -------------------------------------------------------------------------------- 1 | label = $label; 56 | $this->name = $name; 57 | $this->class = $class; 58 | $this->value = $value; 59 | $this->fieldAttributes = $fieldAttributes; 60 | } 61 | 62 | /** 63 | * Determine if the given option is the current selected option. 64 | * 65 | * @return bool 66 | */ 67 | public function isChecked() 68 | { 69 | return $this->value == true; 70 | } 71 | 72 | /** 73 | * Get the view / contents that represent the component. 74 | * 75 | * @return \Illuminate\View\View|string 76 | */ 77 | public function render() 78 | { 79 | return view('components.forms.checkbox'); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /app/Models/MenuItem.php: -------------------------------------------------------------------------------- 1 | belongsTo(Menu::class); 24 | } 25 | 26 | /** 27 | * MenuItem hasMany child's (optional) 28 | * @return \Illuminate\Database\Eloquent\Relations\HasMany 29 | */ 30 | public function childs() 31 | { 32 | return $this->hasMany(MenuItem::class, 'parent_id', 'id') 33 | ->orderBy('order', 'asc');; 34 | } 35 | 36 | /** 37 | * Child menu belongsTo a parent menu item 38 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo 39 | */ 40 | public function parent() 41 | { 42 | return $this->belongsTo(MenuItem::class, 'parent_id', 'id'); 43 | } 44 | 45 | /** 46 | * Flush the cache 47 | */ 48 | public static function flushCache() 49 | { 50 | Cache::forget('backend.sidebar.menu'); 51 | } 52 | 53 | /** 54 | * The "booting" method of the model. 55 | * 56 | * @return void 57 | */ 58 | protected static function boot() 59 | { 60 | parent::boot(); 61 | 62 | static::updated(function () { 63 | self::flushCache(); 64 | }); 65 | 66 | static::created(function() { 67 | self::flushCache(); 68 | }); 69 | 70 | static::deleted(function() { 71 | self::flushCache(); 72 | }); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /app/Models/Role.php: -------------------------------------------------------------------------------- 1 | latest('id')->get(); 26 | }); 27 | } 28 | 29 | /** 30 | * Get roles for select 31 | * 32 | * @return mixed 33 | */ 34 | public static function getForSelect() 35 | { 36 | return Cache::rememberForever('roles.getForSelect', function() { 37 | return self::select('id', 'name')->get(); 38 | }); 39 | } 40 | 41 | /** 42 | * Flush the cache 43 | */ 44 | public static function flushCache() 45 | { 46 | Cache::forget('roles.all'); 47 | Cache::forget('roles.getForSelect'); 48 | } 49 | 50 | /** 51 | * The "booting" method of the model. 52 | * 53 | * @return void 54 | */ 55 | protected static function boot() 56 | { 57 | parent::boot(); 58 | 59 | static::updated(function () { 60 | self::flushCache(); 61 | }); 62 | 63 | static::created(function() { 64 | self::flushCache(); 65 | }); 66 | 67 | static::deleted(function() { 68 | self::flushCache(); 69 | }); 70 | } 71 | 72 | public function users() 73 | { 74 | return $this->hasMany(User::class); 75 | } 76 | 77 | public function permissions() 78 | { 79 | return $this->belongsToMany(Permission::class); 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /resources/views/components/backend-side-menu.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @foreach($items as $item) 3 | @if ($item->type == 'divider') 4 |
  • {{ $item->divider_title }}
  • 5 | @else 6 | @if($item->childs->isEmpty()) 7 |
  • 8 | 9 | 10 | {{ $item->title }} 11 | 12 |
  • 13 | @else 14 |
  • childs as $child) 16 | @if (Request::is(ltrim($child->url,'/').'*')) 17 | class="mm-active" 18 | @break 19 | @endif 20 | @endforeach 21 | > 22 | 23 | 24 | {{ $item->title }} 25 | 26 | 27 | 37 |
  • 38 | @endif 39 | @endif 40 | @endforeach 41 |
    42 | -------------------------------------------------------------------------------- /app/View/Components/Forms/Textbox.php: -------------------------------------------------------------------------------- 1 | type = $type; 71 | $this->label = $label; 72 | $this->name = $name; 73 | $this->placeholder = $placeholder; 74 | $this->class = $class; 75 | $this->value = $value; 76 | $this->fieldAttributes = $fieldAttributes; 77 | } 78 | 79 | /** 80 | * Get the view / contents that represent the component. 81 | * 82 | * @return \Illuminate\View\View|string 83 | */ 84 | public function render() 85 | { 86 | return view('components.forms.textbox'); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /public/fonts/vendor/dropify/dist/dropify.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyright (C) 2015 by original authors @ fontello.com 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /database/seeders/SettingSeeder.php: -------------------------------------------------------------------------------- 1 | 'site_title','value' => 'LaraStarter']); 19 | Setting::updateOrCreate(['name' => 'site_description','value' => 'A laravel starter kit for web artisans.']); 20 | Setting::updateOrCreate(['name' => 'site_address','value' => 'Dhaka,Bangladesh']); 21 | // Logo Settings 22 | Setting::updateOrCreate(['name' => 'site_logo','value' => null]); 23 | Setting::updateOrCreate(['name' => 'site_favicon','value' => null]); 24 | // Mail Settings 25 | Setting::updateOrCreate(['name' => 'mail_mailer','value' => 'smtp']); 26 | Setting::updateOrCreate(['name' => 'mail_host','value' => 'smtp.mailtrap.io']); 27 | Setting::updateOrCreate(['name' => 'mail_port','value' => '2525']); 28 | Setting::updateOrCreate(['name' => 'mail_username','value' => '']); 29 | Setting::updateOrCreate(['name' => 'mail_password','value' => '']); 30 | Setting::updateOrCreate(['name' => 'mail_encryption','value' => 'TLS']); 31 | Setting::updateOrCreate(['name' => 'mail_from_address','value' => '']); 32 | Setting::updateOrCreate(['name' => 'mail_from_name','value' => 'LaraStarter']); 33 | 34 | // Socialite Settings 35 | Setting::updateOrCreate(['name' => 'facebook_client_id','value' => null]); 36 | Setting::updateOrCreate(['name' => 'facebook_client_secret','value' => null]); 37 | 38 | Setting::updateOrCreate(['name' => 'google_client_id','value' => null]); 39 | Setting::updateOrCreate(['name' => 'google_client_secret','value' => null]); 40 | 41 | Setting::updateOrCreate(['name' => 'github_client_id','value' => null]); 42 | Setting::updateOrCreate(['name' => 'github_client_secret','value' => null]); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.frontend.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Reset Password') }}
    9 | 10 |
    11 | @if (session('status')) 12 | 15 | @endif 16 | 17 |
    18 | @csrf 19 | 20 |
    21 | 22 | 23 |
    24 | 25 | 26 | @error('email') 27 | 28 | {{ $message }} 29 | 30 | @enderror 31 |
    32 |
    33 | 34 |
    35 |
    36 | 39 |
    40 |
    41 |
    42 |
    43 |
    44 |
    45 |
    46 |
    47 | @endsection 48 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 40 | 41 | $this->routes(function () { 42 | Route::prefix('api') 43 | ->middleware('api') 44 | ->namespace($this->namespace) 45 | ->group(base_path('routes/api.php')); 46 | 47 | Route::middleware('web') 48 | ->namespace($this->namespace) 49 | ->group(base_path('routes/web.php')); 50 | 51 | Route::middleware('web','auth') 52 | ->prefix('app') 53 | ->name('app.') 54 | ->namespace($this->namespace) 55 | ->group(base_path('routes/backend.php')); 56 | }); 57 | } 58 | 59 | /** 60 | * Configure the rate limiters for the application. 61 | * 62 | * @return void 63 | */ 64 | protected function configureRateLimiting() 65 | { 66 | RateLimiter::for('api', function (Request $request) { 67 | return Limit::perMinute(60); 68 | }); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cipfahim/larastarter", 3 | "type": "project", 4 | "description": "A laravel starter kit for web artisans.", 5 | "keywords": [ 6 | "framework", 7 | "laravel", 8 | "larastarter" 9 | ], 10 | "license": "MIT", 11 | "require": { 12 | "php": "^7.3", 13 | "appslabke/lara-izitoast": "^1.1", 14 | "browner12/helpers": "^3.1", 15 | "fideloper/proxy": "^4.2", 16 | "fruitcake/laravel-cors": "^2.0", 17 | "guzzlehttp/guzzle": "^7.0.1", 18 | "imliam/laravel-env-set-command": "^1.1", 19 | "laravel/framework": "^8.0", 20 | "laravel/socialite": "^5.0", 21 | "laravel/tinker": "^2.0", 22 | "laravel/ui": "^3.0", 23 | "spatie/laravel-backup": "^6.9", 24 | "spatie/laravel-medialibrary": "^8.0.0" 25 | }, 26 | "require-dev": { 27 | "barryvdh/laravel-debugbar": "^3.3", 28 | "facade/ignition": "^2.3.6", 29 | "fzaninotto/faker": "^1.9.1", 30 | "mockery/mockery": "^1.3.1", 31 | "nunomaduro/collision": "^5.0", 32 | "phpunit/phpunit": "^9.3" 33 | }, 34 | "config": { 35 | "optimize-autoloader": true, 36 | "preferred-install": "dist", 37 | "sort-packages": true 38 | }, 39 | "extra": { 40 | "laravel": { 41 | "dont-discover": [] 42 | } 43 | }, 44 | "autoload": { 45 | "psr-4": { 46 | "App\\": "app/", 47 | "Database\\Factories\\": "database/factories/", 48 | "Database\\Seeders\\": "database/seeders/" 49 | } 50 | }, 51 | "autoload-dev": { 52 | "psr-4": { 53 | "Tests\\": "tests/" 54 | } 55 | }, 56 | "minimum-stability": "dev", 57 | "prefer-stable": true, 58 | "scripts": { 59 | "post-autoload-dump": [ 60 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 61 | "@php artisan package:discover --ansi" 62 | ], 63 | "post-root-package-install": [ 64 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 65 | ], 66 | "post-create-project-cmd": [ 67 | "@php artisan key:generate --ansi" 68 | ] 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/confirm.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.frontend.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Confirm Password') }}
    9 | 10 |
    11 | {{ __('Please confirm your password before continuing.') }} 12 | 13 |
    14 | @csrf 15 | 16 |
    17 | 18 | 19 |
    20 | 21 | 22 | @error('password') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
    28 |
    29 | 30 |
    31 |
    32 | 35 | 36 | @if (Route::has('password.request')) 37 | 38 | {{ __('Forgot Your Password?') }} 39 | 40 | @endif 41 |
    42 |
    43 |
    44 |
    45 |
    46 |
    47 |
    48 |
    49 | @endsection 50 | -------------------------------------------------------------------------------- /database/seeders/MenuSeeder.php: -------------------------------------------------------------------------------- 1 | 'backend-sidebar', 'description' => 'This is backend sidebar', 'deletable' => false]); 19 | 20 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'divider', 'parent_id' => null, 'order' => 1, 'divider_title' => 'Menus']); 21 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item', 'parent_id' => null, 'order' => 2, 'title' => 'Dashboard', 'url' => "/app/dashboard", 'icon_class' => 'pe-7s-rocket']); 22 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item', 'parent_id' => null, 'order' => 3, 'title' => 'Pages', 'url' => "/app/pages", 'icon_class' => 'pe-7s-news-paper']); 23 | 24 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'divider', 'parent_id' => null, 'order' => 4, 'divider_title' => 'Access Control']); 25 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item','parent_id' => null, 'order' => 5, 'title' => 'Roles', 'url' => "/app/roles", 'icon_class' => 'pe-7s-check']); 26 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item', 'parent_id' => null, 'order' => 6, 'title' => 'Users', 'url' => "/app/users", 'icon_class' => 'pe-7s-users']); 27 | 28 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'divider', 'parent_id' => null, 'order' => 7, 'divider_title' => 'System']); 29 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item', 'parent_id' => null, 'order' => 8, 'title' => 'Menus', 'url' => "/app/menus", 'icon_class' => 'pe-7s-menu']); 30 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item', 'parent_id' => null, 'order' => 9, 'title' => 'Backups', 'url' => "/app/backups", 'icon_class' => 'pe-7s-cloud']); 31 | MenuItem::updateOrCreate(['menu_id' => $menu->id, 'type' => 'item', 'parent_id' => null, 'order' => 10, 'title' => 'Settings', 'url' => "/app/settings/general", 'icon_class' => 'pe-7s-settings']); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/Http/Controllers/Backend/ProfileController.php: -------------------------------------------------------------------------------- 1 | update([ 26 | 'name' => $request->name, 27 | 'email' => $request->email, 28 | ]); 29 | // upload images 30 | if ($request->hasFile('avatar')) { 31 | $user->addMedia($request->avatar)->toMediaCollection('avatar'); 32 | } 33 | // return with success msg 34 | notify()->success('Profile Successfully Updated.', 'Updated'); 35 | return redirect()->back(); 36 | } 37 | 38 | public function changePassword() 39 | { 40 | Gate::authorize('app.profile.password'); 41 | return view('backend.profile.security'); 42 | } 43 | 44 | public function updatePassword(UpdatePasswordRequest $request) 45 | { 46 | $hashedPassword = Auth::user()->password; 47 | if (Hash::check($request->current_password, $hashedPassword)) { 48 | if (!Hash::check($request->password, $hashedPassword)) { 49 | Auth::user()->update([ 50 | 'password' => Hash::make($request->password) 51 | ]); 52 | Auth::logout(); 53 | notify()->success('Password Successfully Changed.', 'Success'); 54 | return redirect()->route('login'); 55 | } else { 56 | notify()->warning('New password cannot be the same as old password.', 'Warning'); 57 | } 58 | } else { 59 | notify()->error('Current password not match.', 'Error'); 60 | } 61 | return redirect()->back(); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/cs/notifications.php: -------------------------------------------------------------------------------- 1 | 'Zpráva výjimky: :message', 5 | 'exception_trace' => 'Stopa výjimky: :trace', 6 | 'exception_message_title' => 'Zpráva výjimky', 7 | 'exception_trace_title' => 'Stopa výjimky', 8 | 9 | 'backup_failed_subject' => 'Záloha :application_name neuspěla', 10 | 'backup_failed_body' => 'Důležité: Při záloze :application_name se vyskytla chyba', 11 | 12 | 'backup_successful_subject' => 'Úspěšná nová záloha :application_name', 13 | 'backup_successful_subject_title' => 'Úspěšná nová záloha!', 14 | 'backup_successful_body' => 'Dobrá zpráva, na disku jménem :disk_name byla úspěšně vytvořena nová záloha :application_name.', 15 | 16 | 'cleanup_failed_subject' => 'Vyčištění záloh :application_name neuspělo.', 17 | 'cleanup_failed_body' => 'Při vyčištění záloh :application_name se vyskytla chyba', 18 | 19 | 'cleanup_successful_subject' => 'Vyčištění záloh :application_name úspěšné', 20 | 'cleanup_successful_subject_title' => 'Vyčištění záloh bylo úspěšné!', 21 | 'cleanup_successful_body' => 'Vyčištění záloh :application_name na disku jménem :disk_name bylo úspěšné.', 22 | 23 | 'healthy_backup_found_subject' => 'Zálohy pro :application_name na disku :disk_name jsou zdravé', 24 | 'healthy_backup_found_subject_title' => 'Zálohy pro :application_name jsou zdravé', 25 | 'healthy_backup_found_body' => 'Zálohy pro :application_name jsou považovány za zdravé. Dobrá práce!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Důležité: Zálohy pro :application_name jsou nezdravé', 28 | 'unhealthy_backup_found_subject_title' => 'Důležité: Zálohy pro :application_name jsou nezdravé. :problem', 29 | 'unhealthy_backup_found_body' => 'Zálohy pro :application_name na disku :disk_name Jsou nezdravé.', 30 | 'unhealthy_backup_found_not_reachable' => 'Nelze se dostat k cíli zálohy. :error', 31 | 'unhealthy_backup_found_empty' => 'Tato aplikace nemá vůbec žádné zálohy.', 32 | 'unhealthy_backup_found_old' => 'Poslední záloha vytvořená dne :date je považována za příliš starou.', 33 | 'unhealthy_backup_found_unknown' => 'Omlouváme se, nemůžeme určit přesný důvod.', 34 | 'unhealthy_backup_found_full' => 'Zálohy zabírají příliš mnoho místa na disku. Aktuální využití disku je :disk_usage, což je vyšší než povolený limit :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/da/notifications.php: -------------------------------------------------------------------------------- 1 | 'Fejlbesked: :message', 5 | 'exception_trace' => 'Fejl trace: :trace', 6 | 'exception_message_title' => 'Fejlbesked', 7 | 'exception_trace_title' => 'Fejl trace', 8 | 9 | 'backup_failed_subject' => 'Backup af :application_name fejlede', 10 | 'backup_failed_body' => 'Vigtigt: Der skete en fejl under backup af :application_name', 11 | 12 | 'backup_successful_subject' => 'Ny backup af :application_name oprettet', 13 | 'backup_successful_subject_title' => 'Ny backup!', 14 | 'backup_successful_body' => 'Gode nyheder - der blev oprettet en ny backup af :application_name på disken :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Oprydning af backups for :application_name fejlede.', 17 | 'cleanup_failed_body' => 'Der skete en fejl under oprydning af backups for :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Oprydning af backups for :application_name gennemført', 20 | 'cleanup_successful_subject_title' => 'Backup oprydning gennemført!', 21 | 'cleanup_successful_body' => 'Oprydningen af backups for :application_name på disken :disk_name er gennemført.', 22 | 23 | 'healthy_backup_found_subject' => 'Alle backups for :application_name på disken :disk_name er OK', 24 | 'healthy_backup_found_subject_title' => 'Alle backups for :application_name er OK', 25 | 'healthy_backup_found_body' => 'Alle backups for :application_name er ok. Godt gået!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Vigtigt: Backups for :application_name fejlbehæftede', 28 | 'unhealthy_backup_found_subject_title' => 'Vigtigt: Backups for :application_name er fejlbehæftede. :problem', 29 | 'unhealthy_backup_found_body' => 'Backups for :application_name på disken :disk_name er fejlbehæftede.', 30 | 'unhealthy_backup_found_not_reachable' => 'Backup destinationen kunne ikke findes. :error', 31 | 'unhealthy_backup_found_empty' => 'Denne applikation har ingen backups overhovedet.', 32 | 'unhealthy_backup_found_old' => 'Den seneste backup fra :date er for gammel.', 33 | 'unhealthy_backup_found_unknown' => 'Beklager, en præcis årsag kunne ikke findes.', 34 | 'unhealthy_backup_found_full' => 'Backups bruger for meget plads. Nuværende disk forbrug er :disk_usage, hvilket er mere end den tilladte grænse på :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/hi/notifications.php: -------------------------------------------------------------------------------- 1 | 'गलती संदेश: :message', 5 | 'exception_trace' => 'गलती निशान: :trace', 6 | 'exception_message_title' => 'गलती संदेश', 7 | 'exception_trace_title' => 'गलती निशान', 8 | 9 | 'backup_failed_subject' => ':application_name का बैकअप असफल रहा', 10 | 'backup_failed_body' => 'जरूरी सुचना: :application_name का बैकअप लेते समय असफल रहे', 11 | 12 | 'backup_successful_subject' => ':application_name का बैकअप सफल रहा', 13 | 'backup_successful_subject_title' => 'बैकअप सफल रहा!', 14 | 'backup_successful_body' => 'खुशखबरी, :application_name का बैकअप :disk_name पर संग्रहित करने मे सफल रहे.', 15 | 16 | 'cleanup_failed_subject' => ':application_name के बैकअप की सफाई असफल रही.', 17 | 'cleanup_failed_body' => ':application_name के बैकअप की सफाई करते समय कुछ बाधा आयी है.', 18 | 19 | 'cleanup_successful_subject' => ':application_name के बैकअप की सफाई सफल रही', 20 | 'cleanup_successful_subject_title' => 'बैकअप की सफाई सफल रही!', 21 | 'cleanup_successful_body' => ':application_name का बैकअप जो :disk_name नाम की डिस्क पर संग्रहित है, उसकी सफाई सफल रही.', 22 | 23 | 'healthy_backup_found_subject' => ':disk_name नाम की डिस्क पर संग्रहित :application_name के बैकअप स्वस्थ है', 24 | 'healthy_backup_found_subject_title' => ':application_name के सभी बैकअप स्वस्थ है', 25 | 'healthy_backup_found_body' => 'बहुत बढ़िया! :application_name के सभी बैकअप स्वस्थ है.', 26 | 27 | 'unhealthy_backup_found_subject' => 'जरूरी सुचना : :application_name के बैकअप अस्वस्थ है', 28 | 'unhealthy_backup_found_subject_title' => 'जरूरी सुचना : :application_name के बैकअप :problem के बजेसे अस्वस्थ है', 29 | 'unhealthy_backup_found_body' => ':disk_name नाम की डिस्क पर संग्रहित :application_name के बैकअप अस्वस्थ है', 30 | 'unhealthy_backup_found_not_reachable' => ':error के बजेसे बैकअप की मंजिल तक पोहोच नहीं सकते.', 31 | 'unhealthy_backup_found_empty' => 'इस एप्लीकेशन का कोई भी बैकअप नहीं है.', 32 | 'unhealthy_backup_found_old' => 'हालहीमें :date को लिया हुआ बैकअप बहुत पुराना है.', 33 | 'unhealthy_backup_found_unknown' => 'माफ़ कीजिये, सही कारण निर्धारित नहीं कर सकते.', 34 | 'unhealthy_backup_found_full' => 'सभी बैकअप बहुत ज्यादा जगह का उपयोग कर रहे है. फ़िलहाल सभी बैकअप :disk_usage जगह का उपयोग कर रहे है, जो की :disk_limit अनुमति सीमा से अधिक का है.', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 43 | } 44 | 45 | /** 46 | * Get a validator for an incoming registration request. 47 | * 48 | * @param array $data 49 | * @return \Illuminate\Contracts\Validation\Validator 50 | */ 51 | protected function validator(array $data) 52 | { 53 | return Validator::make($data, [ 54 | 'name' => ['required', 'string', 'max:255'], 55 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 56 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 57 | ]); 58 | } 59 | 60 | /** 61 | * Create a new user instance after a valid registration. 62 | * 63 | * @param array $data 64 | * @return User 65 | */ 66 | protected function create(array $data) 67 | { 68 | return User::create([ 69 | 'role_id' => Role::where('slug','user')->first()->id, 70 | 'name' => $data['name'], 71 | 'email' => $data['email'], 72 | 'password' => Hash::make($data['password']), 73 | ]); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/ar/notifications.php: -------------------------------------------------------------------------------- 1 | 'رسالة استثناء: :message', 5 | 'exception_trace' => 'تتبع الإستثناء: :trace', 6 | 'exception_message_title' => 'رسالة استثناء', 7 | 'exception_trace_title' => 'تتبع الإستثناء', 8 | 9 | 'backup_failed_subject' => 'أخفق النسخ الاحتياطي لل :application_name', 10 | 'backup_failed_body' => 'مهم: حدث خطأ أثناء النسخ الاحتياطي :application_name', 11 | 12 | 'backup_successful_subject' => 'نسخ احتياطي جديد ناجح ل :application_name', 13 | 'backup_successful_subject_title' => 'نجاح النسخ الاحتياطي الجديد!', 14 | 'backup_successful_body' => 'أخبار عظيمة، نسخة احتياطية جديدة ل :application_name تم إنشاؤها بنجاح على القرص المسمى :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'فشل تنظيف النسخ الاحتياطي للتطبيق :application_name .', 17 | 'cleanup_failed_body' => 'حدث خطأ أثناء تنظيف النسخ الاحتياطية ل :application_name', 18 | 19 | 'cleanup_successful_subject' => 'تنظيف النسخ الاحتياطية ل :application_name تمت بنجاح', 20 | 'cleanup_successful_subject_title' => 'تنظيف النسخ الاحتياطية تم بنجاح!', 21 | 'cleanup_successful_body' => 'تنظيف النسخ الاحتياطية ل :application_name على القرص المسمى :disk_name تم بنجاح.', 22 | 23 | 'healthy_backup_found_subject' => 'النسخ الاحتياطية ل :application_name على القرص :disk_name صحية', 24 | 'healthy_backup_found_subject_title' => 'النسخ الاحتياطية ل :application_name صحية', 25 | 'healthy_backup_found_body' => 'تعتبر النسخ الاحتياطية ل :application_name صحية. عمل جيد!', 26 | 27 | 'unhealthy_backup_found_subject' => 'مهم: النسخ الاحتياطية ل :application_name غير صحية', 28 | 'unhealthy_backup_found_subject_title' => 'مهم: النسخ الاحتياطية ل :application_name غير صحية. :problem', 29 | 'unhealthy_backup_found_body' => 'النسخ الاحتياطية ل :application_name على القرص :disk_name غير صحية.', 30 | 'unhealthy_backup_found_not_reachable' => 'لا يمكن الوصول إلى وجهة النسخ الاحتياطي. :error', 31 | 'unhealthy_backup_found_empty' => 'لا توجد نسخ احتياطية لهذا التطبيق على الإطلاق.', 32 | 'unhealthy_backup_found_old' => 'تم إنشاء أحدث النسخ الاحتياطية في :date وتعتبر قديمة جدا.', 33 | 'unhealthy_backup_found_unknown' => 'عذرا، لا يمكن تحديد سبب دقيق.', 34 | 'unhealthy_backup_found_full' => 'النسخ الاحتياطية تستخدم الكثير من التخزين. الاستخدام الحالي هو :disk_usage وهو أعلى من الحد المسموح به من :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/tr/notifications.php: -------------------------------------------------------------------------------- 1 | 'Hata mesajı: :message', 5 | 'exception_trace' => 'Hata izleri: :trace', 6 | 'exception_message_title' => 'Hata mesajı', 7 | 'exception_trace_title' => 'Hata izleri', 8 | 9 | 'backup_failed_subject' => 'Yedeklenemedi :application_name', 10 | 'backup_failed_body' => 'Önemli: Yedeklenirken bir hata oluştu :application_name', 11 | 12 | 'backup_successful_subject' => 'Başarılı :application_name yeni yedeklemesi', 13 | 'backup_successful_subject_title' => 'Başarılı bir yeni yedekleme!', 14 | 'backup_successful_body' => 'Harika bir haber, :application_name âit yeni bir yedekleme :disk_name adlı diskte başarıyla oluşturuldu.', 15 | 16 | 'cleanup_failed_subject' => ':application_name yedeklemeleri temizlenmesi başarısız.', 17 | 'cleanup_failed_body' => ':application_name yedeklerini temizlerken bir hata oluştu ', 18 | 19 | 'cleanup_successful_subject' => ':application_name yedeklemeleri temizlenmesi başarılı.', 20 | 'cleanup_successful_subject_title' => 'Yedeklerin temizlenmesi başarılı!', 21 | 'cleanup_successful_body' => ':application_name yedeklemeleri temizlenmesi ,:disk_name diskinden silindi', 22 | 23 | 'healthy_backup_found_subject' => ':application_name yedeklenmesi ,:disk_name adlı diskte sağlıklı', 24 | 'healthy_backup_found_subject_title' => ':application_name yedeklenmesi sağlıklı', 25 | 'healthy_backup_found_body' => ':application_name için yapılan yedeklemeler sağlıklı sayılır. Aferin!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Önemli: :application_name için yedeklemeler sağlıksız', 28 | 'unhealthy_backup_found_subject_title' => 'Önemli: :application_name için yedeklemeler sağlıksız. :problem', 29 | 'unhealthy_backup_found_body' => 'Yedeklemeler: :application_name disk: :disk_name sağlıksız.', 30 | 'unhealthy_backup_found_not_reachable' => 'Yedekleme hedefine ulaşılamıyor. :error', 31 | 'unhealthy_backup_found_empty' => 'Bu uygulamanın yedekleri yok.', 32 | 'unhealthy_backup_found_old' => ':date tarihinde yapılan en son yedekleme çok eski kabul ediliyor.', 33 | 'unhealthy_backup_found_unknown' => 'Üzgünüm, kesin bir sebep belirlenemiyor.', 34 | 'unhealthy_backup_found_full' => 'Yedeklemeler çok fazla depolama alanı kullanıyor. Şu anki kullanım: :disk_usage, izin verilen sınırdan yüksek: :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/fa/notifications.php: -------------------------------------------------------------------------------- 1 | 'پیغام خطا: :message', 5 | 'exception_trace' => 'جزییات خطا: :trace', 6 | 'exception_message_title' => 'پیغام خطا', 7 | 'exception_trace_title' => 'جزییات خطا', 8 | 9 | 'backup_failed_subject' => 'پشتیبان‌گیری :application_name با خطا مواجه شد.', 10 | 'backup_failed_body' => 'پیغام مهم: هنگام پشتیبان‌گیری از :application_name خطایی رخ داده است. ', 11 | 12 | 'backup_successful_subject' => 'نسخه پشتیبان جدید :application_name با موفقیت ساخته شد.', 13 | 'backup_successful_subject_title' => 'پشتیبان‌گیری موفق!', 14 | 'backup_successful_body' => 'خبر خوب, به تازگی نسخه پشتیبان :application_name بر روی دیسک :disk_name با موفقیت ساخته شد. ', 15 | 16 | 'cleanup_failed_subject' => 'پاک‌‌سازی نسخه پشتیبان :application_name انجام نشد.', 17 | 'cleanup_failed_body' => 'هنگام پاک‌سازی نسخه پشتیبان :application_name خطایی رخ داده است.', 18 | 19 | 'cleanup_successful_subject' => 'پاک‌سازی نسخه پشتیبان :application_name با موفقیت انجام شد.', 20 | 'cleanup_successful_subject_title' => 'پاک‌سازی نسخه پشتیبان!', 21 | 'cleanup_successful_body' => 'پاک‌سازی نسخه پشتیبان :application_name بر روی دیسک :disk_name با موفقیت انجام شد.', 22 | 23 | 'healthy_backup_found_subject' => 'نسخه پشتیبان :application_name بر روی دیسک :disk_name سالم بود.', 24 | 'healthy_backup_found_subject_title' => 'نسخه پشتیبان :application_name سالم بود.', 25 | 'healthy_backup_found_body' => 'نسخه پشتیبان :application_name به نظر سالم میاد. دمت گرم!', 26 | 27 | 'unhealthy_backup_found_subject' => 'خبر مهم: نسخه پشتیبان :application_name سالم نبود.', 28 | 'unhealthy_backup_found_subject_title' => 'خبر مهم: نسخه پشتیبان :application_name سالم نبود. :problem', 29 | 'unhealthy_backup_found_body' => 'نسخه پشتیبان :application_name بر روی دیسک :disk_name سالم نبود.', 30 | 'unhealthy_backup_found_not_reachable' => 'مقصد پشتیبان‌گیری در دسترس نبود. :error', 31 | 'unhealthy_backup_found_empty' => 'برای این برنامه هیچ نسخه پشتیبانی وجود ندارد.', 32 | 'unhealthy_backup_found_old' => 'آخرین نسخه پشتیبان برای تاریخ :date است. که به نظر خیلی قدیمی میاد. ', 33 | 'unhealthy_backup_found_unknown' => 'متاسفانه دلیل دقیق مشخص نشده است.', 34 | 'unhealthy_backup_found_full' => 'نسخه‌های پشتیبانی که تهیه کرده اید حجم زیادی اشغال کرده اند. میزان دیسک استفاده شده :disk_usage است که از میزان مجاز :disk_limit فراتر رفته است. ', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/fi/notifications.php: -------------------------------------------------------------------------------- 1 | 'Virheilmoitus: :message', 5 | 'exception_trace' => 'Virhe, jäljitys: :trace', 6 | 'exception_message_title' => 'Virheilmoitus', 7 | 'exception_trace_title' => 'Virheen jäljitys', 8 | 9 | 'backup_failed_subject' => ':application_name varmuuskopiointi epäonnistui', 10 | 'backup_failed_body' => 'HUOM!: :application_name varmuuskoipionnissa tapahtui virhe', 11 | 12 | 'backup_successful_subject' => ':application_name varmuuskopioitu onnistuneesti', 13 | 'backup_successful_subject_title' => 'Uusi varmuuskopio!', 14 | 'backup_successful_body' => 'Hyviä uutisia! :application_name on varmuuskopioitu levylle :disk_name.', 15 | 16 | 'cleanup_failed_subject' => ':application_name varmuuskopioiden poistaminen epäonnistui.', 17 | 'cleanup_failed_body' => ':application_name varmuuskopioiden poistamisessa tapahtui virhe.', 18 | 19 | 'cleanup_successful_subject' => ':application_name varmuuskopiot poistettu onnistuneesti', 20 | 'cleanup_successful_subject_title' => 'Varmuuskopiot poistettu onnistuneesti!', 21 | 'cleanup_successful_body' => ':application_name varmuuskopiot poistettu onnistuneesti levyltä :disk_name.', 22 | 23 | 'healthy_backup_found_subject' => ':application_name varmuuskopiot levyllä :disk_name ovat kunnossa', 24 | 'healthy_backup_found_subject_title' => ':application_name varmuuskopiot ovat kunnossa', 25 | 'healthy_backup_found_body' => ':application_name varmuuskopiot ovat kunnossa. Hieno homma!', 26 | 27 | 'unhealthy_backup_found_subject' => 'HUOM!: :application_name varmuuskopiot ovat vialliset', 28 | 'unhealthy_backup_found_subject_title' => 'HUOM!: :application_name varmuuskopiot ovat vialliset. :problem', 29 | 'unhealthy_backup_found_body' => ':application_name varmuuskopiot levyllä :disk_name ovat vialliset.', 30 | 'unhealthy_backup_found_not_reachable' => 'Varmuuskopioiden kohdekansio ei ole saatavilla. :error', 31 | 'unhealthy_backup_found_empty' => 'Tästä sovelluksesta ei ole varmuuskopioita.', 32 | 'unhealthy_backup_found_old' => 'Viimeisin varmuuskopio, luotu :date, on liian vanha.', 33 | 'unhealthy_backup_found_unknown' => 'Virhe, tarkempaa tietoa syystä ei valitettavasti ole saatavilla.', 34 | 'unhealthy_backup_found_full' => 'Varmuuskopiot vievät liikaa levytilaa. Tällä hetkellä käytössä :disk_usage, mikä on suurempi kuin sallittu tilavuus (:disk_limit).', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/en/notifications.php: -------------------------------------------------------------------------------- 1 | 'Exception message: :message', 5 | 'exception_trace' => 'Exception trace: :trace', 6 | 'exception_message_title' => 'Exception message', 7 | 'exception_trace_title' => 'Exception trace', 8 | 9 | 'backup_failed_subject' => 'Failed backup of :application_name', 10 | 'backup_failed_body' => 'Important: An error occurred while backing up :application_name', 11 | 12 | 'backup_successful_subject' => 'Successful new backup of :application_name', 13 | 'backup_successful_subject_title' => 'Successful new backup!', 14 | 'backup_successful_body' => 'Great news, a new backup of :application_name was successfully created on the disk named :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Cleaning up the backups of :application_name failed.', 17 | 'cleanup_failed_body' => 'An error occurred while cleaning up the backups of :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Clean up of :application_name backups successful', 20 | 'cleanup_successful_subject_title' => 'Clean up of backups successful!', 21 | 'cleanup_successful_body' => 'The clean up of the :application_name backups on the disk named :disk_name was successful.', 22 | 23 | 'healthy_backup_found_subject' => 'The backups for :application_name on disk :disk_name are healthy', 24 | 'healthy_backup_found_subject_title' => 'The backups for :application_name are healthy', 25 | 'healthy_backup_found_body' => 'The backups for :application_name are considered healthy. Good job!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Important: The backups for :application_name are unhealthy', 28 | 'unhealthy_backup_found_subject_title' => 'Important: The backups for :application_name are unhealthy. :problem', 29 | 'unhealthy_backup_found_body' => 'The backups for :application_name on disk :disk_name are unhealthy.', 30 | 'unhealthy_backup_found_not_reachable' => 'The backup destination cannot be reached. :error', 31 | 'unhealthy_backup_found_empty' => 'There are no backups of this application at all.', 32 | 'unhealthy_backup_found_old' => 'The latest backup made on :date is considered too old.', 33 | 'unhealthy_backup_found_unknown' => 'Sorry, an exact reason cannot be determined.', 34 | 'unhealthy_backup_found_full' => 'The backups are using too much storage. Current usage is :disk_usage which is higher than the allowed limit of :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/id/notifications.php: -------------------------------------------------------------------------------- 1 | 'Pesan pengecualian: :message', 5 | 'exception_trace' => 'Jejak pengecualian: :trace', 6 | 'exception_message_title' => 'Pesan pengecualian', 7 | 'exception_trace_title' => 'Jejak pengecualian', 8 | 9 | 'backup_failed_subject' => 'Gagal backup :application_name', 10 | 'backup_failed_body' => 'Penting: Sebuah error terjadi ketika membackup :application_name', 11 | 12 | 'backup_successful_subject' => 'Backup baru sukses dari :application_name', 13 | 'backup_successful_subject_title' => 'Backup baru sukses!', 14 | 'backup_successful_body' => 'Kabar baik, sebuah backup baru dari :application_name sukses dibuat pada disk bernama :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Membersihkan backup dari :application_name yang gagal.', 17 | 'cleanup_failed_body' => 'Sebuah error teradi ketika membersihkan backup dari :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Sukses membersihkan backup :application_name', 20 | 'cleanup_successful_subject_title' => 'Sukses membersihkan backup!', 21 | 'cleanup_successful_body' => 'Pembersihan backup :application_name pada disk bernama :disk_name telah sukses.', 22 | 23 | 'healthy_backup_found_subject' => 'Backup untuk :application_name pada disk :disk_name sehat', 24 | 'healthy_backup_found_subject_title' => 'Backup untuk :application_name sehat', 25 | 'healthy_backup_found_body' => 'Backup untuk :application_name dipertimbangkan sehat. Kerja bagus!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Penting: Backup untuk :application_name tidak sehat', 28 | 'unhealthy_backup_found_subject_title' => 'Penting: Backup untuk :application_name tidak sehat. :problem', 29 | 'unhealthy_backup_found_body' => 'Backup untuk :application_name pada disk :disk_name tidak sehat.', 30 | 'unhealthy_backup_found_not_reachable' => 'Tujuan backup tidak dapat terjangkau. :error', 31 | 'unhealthy_backup_found_empty' => 'Tidak ada backup pada aplikasi ini sama sekali.', 32 | 'unhealthy_backup_found_old' => 'Backup terakhir dibuat pada :date dimana dipertimbahkan sudah sangat lama.', 33 | 'unhealthy_backup_found_unknown' => 'Maaf, sebuah alasan persisnya tidak dapat ditentukan.', 34 | 'unhealthy_backup_found_full' => 'Backup menggunakan terlalu banyak kapasitas penyimpanan. Penggunaan terkini adalah :disk_usage dimana lebih besar dari batas yang diperbolehkan yaitu :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/uk/notifications.php: -------------------------------------------------------------------------------- 1 | 'Повідомлення про помилку: :message', 5 | 'exception_trace' => 'Деталі помилки: :trace', 6 | 'exception_message_title' => 'Повідомлення помилки', 7 | 'exception_trace_title' => 'Деталі помилки', 8 | 9 | 'backup_failed_subject' => 'Не вдалось зробити резервну копію :application_name', 10 | 'backup_failed_body' => 'Увага: Трапилась помилка під час резервного копіювання :application_name', 11 | 12 | 'backup_successful_subject' => 'Успішне резервне копіювання :application_name', 13 | 'backup_successful_subject_title' => 'Успішно створена резервна копія!', 14 | 'backup_successful_body' => 'Чудова новина, нова резервна копія :application_name успішно створена і збережена на диск :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Не вдалось очистити резервні копії :application_name', 17 | 'cleanup_failed_body' => 'Сталася помилка під час очищення резервних копій :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Успішне очищення від резервних копій :application_name', 20 | 'cleanup_successful_subject_title' => 'Очищення резервних копій пройшло вдало!', 21 | 'cleanup_successful_body' => 'Очищенно від старих резервних копій :application_name на диску :disk_name пойшло успішно.', 22 | 23 | 'healthy_backup_found_subject' => 'Резервна копія :application_name з диску :disk_name установлена', 24 | 'healthy_backup_found_subject_title' => 'Резервна копія :application_name установлена', 25 | 'healthy_backup_found_body' => 'Резервна копія :application_name успішно установлена. Хороша робота!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Увага: резервна копія :application_name не установилась', 28 | 'unhealthy_backup_found_subject_title' => 'Увага: резервна копія для :application_name не установилась. :problem', 29 | 'unhealthy_backup_found_body' => 'Резервна копія для :application_name на диску :disk_name не установилась.', 30 | 'unhealthy_backup_found_not_reachable' => 'Резервна копія не змогла установитись. :error', 31 | 'unhealthy_backup_found_empty' => 'Резервні копії для цього додатку відсутні.', 32 | 'unhealthy_backup_found_old' => 'Останнє резервне копіювання створено :date є застарілим.', 33 | 'unhealthy_backup_found_unknown' => 'Вибачте, але ми не змогли визначити точну причину.', 34 | 'unhealthy_backup_found_full' => 'Резервні копії використовують занадто багато пам`яті. Використовується :disk_usage що вище за допустиму межу :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/de/notifications.php: -------------------------------------------------------------------------------- 1 | 'Fehlermeldung: :message', 5 | 'exception_trace' => 'Fehlerverfolgung: :trace', 6 | 'exception_message_title' => 'Fehlermeldung', 7 | 'exception_trace_title' => 'Fehlerverfolgung', 8 | 9 | 'backup_failed_subject' => 'Backup von :application_name konnte nicht erstellt werden', 10 | 'backup_failed_body' => 'Wichtig: Beim Backup von :application_name ist ein Fehler aufgetreten', 11 | 12 | 'backup_successful_subject' => 'Erfolgreiches neues Backup von :application_name', 13 | 'backup_successful_subject_title' => 'Erfolgreiches neues Backup!', 14 | 'backup_successful_body' => 'Gute Nachrichten, ein neues Backup von :application_name wurde erfolgreich erstellt und in :disk_name gepeichert.', 15 | 16 | 'cleanup_failed_subject' => 'Aufräumen der Backups von :application_name schlug fehl.', 17 | 'cleanup_failed_body' => 'Beim aufräumen der Backups von :application_name ist ein Fehler aufgetreten', 18 | 19 | 'cleanup_successful_subject' => 'Aufräumen der Backups von :application_name backups erfolgreich', 20 | 'cleanup_successful_subject_title' => 'Aufräumen der Backups erfolgreich!', 21 | 'cleanup_successful_body' => 'Aufräumen der Backups von :application_name in :disk_name war erfolgreich.', 22 | 23 | 'healthy_backup_found_subject' => 'Die Backups von :application_name in :disk_name sind gesund', 24 | 'healthy_backup_found_subject_title' => 'Die Backups von :application_name sind Gesund', 25 | 'healthy_backup_found_body' => 'Die Backups von :application_name wurden als gesund eingestuft. Gute Arbeit!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Wichtig: Die Backups für :application_name sind nicht gesund', 28 | 'unhealthy_backup_found_subject_title' => 'Wichtig: Die Backups für :application_name sind ungesund. :problem', 29 | 'unhealthy_backup_found_body' => 'Die Backups für :application_name in :disk_name sind ungesund.', 30 | 'unhealthy_backup_found_not_reachable' => 'Das Backup Ziel konnte nicht erreicht werden. :error', 31 | 'unhealthy_backup_found_empty' => 'Es gibt für die Anwendung noch gar keine Backups.', 32 | 'unhealthy_backup_found_old' => 'Das letzte Backup am :date ist zu lange her.', 33 | 'unhealthy_backup_found_unknown' => 'Sorry, ein genauer Grund konnte nicht gefunden werden.', 34 | 'unhealthy_backup_found_full' => 'Die Backups verbrauchen zu viel Platz. Aktuell wird :disk_usage belegt, dass ist höher als das erlaubte Limit von :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/it/notifications.php: -------------------------------------------------------------------------------- 1 | 'Messaggio dell\'eccezione: :message', 5 | 'exception_trace' => 'Traccia dell\'eccezione: :trace', 6 | 'exception_message_title' => 'Messaggio dell\'eccezione', 7 | 'exception_trace_title' => 'Traccia dell\'eccezione', 8 | 9 | 'backup_failed_subject' => 'Fallito il backup di :application_name', 10 | 'backup_failed_body' => 'Importante: Si è verificato un errore durante il backup di :application_name', 11 | 12 | 'backup_successful_subject' => 'Creato nuovo backup di :application_name', 13 | 'backup_successful_subject_title' => 'Nuovo backup creato!', 14 | 'backup_successful_body' => 'Grande notizia, un nuovo backup di :application_name è stato creato con successo sul disco :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Pulizia dei backup di :application_name fallita.', 17 | 'cleanup_failed_body' => 'Si è verificato un errore durante la pulizia dei backup di :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Pulizia dei backup di :application_name avvenuta con successo', 20 | 'cleanup_successful_subject_title' => 'Pulizia dei backup avvenuta con successo!', 21 | 'cleanup_successful_body' => 'La pulizia dei backup di :application_name sul disco :disk_name è avvenuta con successo.', 22 | 23 | 'healthy_backup_found_subject' => 'I backup per :application_name sul disco :disk_name sono sani', 24 | 'healthy_backup_found_subject_title' => 'I backup per :application_name sono sani', 25 | 'healthy_backup_found_body' => 'I backup per :application_name sono considerati sani. Bel Lavoro!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Importante: i backup per :application_name sono corrotti', 28 | 'unhealthy_backup_found_subject_title' => 'Importante: i backup per :application_name sono corrotti. :problem', 29 | 'unhealthy_backup_found_body' => 'I backup per :application_name sul disco :disk_name sono corrotti.', 30 | 'unhealthy_backup_found_not_reachable' => 'Impossibile raggiungere la destinazione di backup. :error', 31 | 'unhealthy_backup_found_empty' => 'Non esiste alcun backup di questa applicazione.', 32 | 'unhealthy_backup_found_old' => 'L\'ultimo backup fatto il :date è considerato troppo vecchio.', 33 | 'unhealthy_backup_found_unknown' => 'Spiacenti, non è possibile determinare una ragione esatta.', 34 | 'unhealthy_backup_found_full' => 'I backup utilizzano troppa memoria. L\'utilizzo corrente è :disk_usage che è superiore al limite consentito di :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/ru/notifications.php: -------------------------------------------------------------------------------- 1 | 'Сообщение об ошибке: :message', 5 | 'exception_trace' => 'Сведения об ошибке: :trace', 6 | 'exception_message_title' => 'Сообщение об ошибке', 7 | 'exception_trace_title' => 'Сведения об ошибке', 8 | 9 | 'backup_failed_subject' => 'Не удалось сделать резервную копию :application_name', 10 | 'backup_failed_body' => 'Внимание: Произошла ошибка во время резервного копирования :application_name', 11 | 12 | 'backup_successful_subject' => 'Успешно создана новая резервная копия :application_name', 13 | 'backup_successful_subject_title' => 'Успешно создана новая резервная копия!', 14 | 'backup_successful_body' => 'Отличная новость, новая резервная копия :application_name успешно создана и сохранена на диск :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Не удалось очистить резервные копии :application_name', 17 | 'cleanup_failed_body' => 'Произошла ошибка при очистке резервных копий :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Очистка от резервных копий :application_name прошла успешно', 20 | 'cleanup_successful_subject_title' => 'Очистка резервных копий прошла удачно!', 21 | 'cleanup_successful_body' => 'Очистка от старых резервных копий :application_name на диске :disk_name прошла удачно.', 22 | 23 | 'healthy_backup_found_subject' => 'Резервная копия :application_name с диска :disk_name установлена', 24 | 'healthy_backup_found_subject_title' => 'Резервная копия :application_name установлена', 25 | 'healthy_backup_found_body' => 'Резервная копия :application_name успешно установлена. Хорошая работа!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Внимание: резервная копия :application_name не установилась', 28 | 'unhealthy_backup_found_subject_title' => 'Внимание: резервная копия для :application_name не установилась. :problem', 29 | 'unhealthy_backup_found_body' => 'Резервная копия для :application_name на диске :disk_name не установилась.', 30 | 'unhealthy_backup_found_not_reachable' => 'Резервная копия не смогла установиться. :error', 31 | 'unhealthy_backup_found_empty' => 'Резервные копии для этого приложения отсутствуют.', 32 | 'unhealthy_backup_found_old' => 'Последнее резервное копирование создано :date является устаревшим.', 33 | 'unhealthy_backup_found_unknown' => 'Извините, точная причина не может быть определена.', 34 | 'unhealthy_backup_found_full' => 'Резервные копии используют слишком много памяти. Используется :disk_usage что выше допустимого предела: :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/nl/notifications.php: -------------------------------------------------------------------------------- 1 | 'Fout bericht: :message', 5 | 'exception_trace' => 'Fout trace: :trace', 6 | 'exception_message_title' => 'Fout bericht', 7 | 'exception_trace_title' => 'Fout trace', 8 | 9 | 'backup_failed_subject' => 'Back-up van :application_name mislukt', 10 | 'backup_failed_body' => 'Belangrijk: Er ging iets fout tijdens het maken van een back-up van :application_name', 11 | 12 | 'backup_successful_subject' => 'Succesvolle nieuwe back-up van :application_name', 13 | 'backup_successful_subject_title' => 'Succesvolle nieuwe back-up!', 14 | 'backup_successful_body' => 'Goed nieuws, een nieuwe back-up van :application_name was succesvol aangemaakt op de schijf genaamd :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Het opschonen van de back-ups van :application_name is mislukt.', 17 | 'cleanup_failed_body' => 'Er ging iets fout tijdens het opschonen van de back-ups van :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Opschonen van :application_name back-ups was succesvol.', 20 | 'cleanup_successful_subject_title' => 'Opschonen van back-ups was succesvol!', 21 | 'cleanup_successful_body' => 'Het opschonen van de :application_name back-ups op de schijf genaamd :disk_name was succesvol.', 22 | 23 | 'healthy_backup_found_subject' => 'De back-ups voor :application_name op schijf :disk_name zijn gezond', 24 | 'healthy_backup_found_subject_title' => 'De back-ups voor :application_name zijn gezond', 25 | 'healthy_backup_found_body' => 'De back-ups voor :application_name worden als gezond beschouwd. Goed gedaan!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Belangrijk: De back-ups voor :application_name zijn niet meer gezond', 28 | 'unhealthy_backup_found_subject_title' => 'Belangrijk: De back-ups voor :application_name zijn niet gezond. :problem', 29 | 'unhealthy_backup_found_body' => 'De back-ups voor :application_name op schijf :disk_name zijn niet gezond.', 30 | 'unhealthy_backup_found_not_reachable' => 'De back-upbestemming kon niet worden bereikt. :error', 31 | 'unhealthy_backup_found_empty' => 'Er zijn geen back-ups van deze applicatie beschikbaar.', 32 | 'unhealthy_backup_found_old' => 'De laatste back-up gemaakt op :date is te oud.', 33 | 'unhealthy_backup_found_unknown' => 'Sorry, een exacte reden kon niet worden bepaald.', 34 | 'unhealthy_backup_found_full' => 'De back-ups gebruiken te veel opslagruimte. Momenteel wordt er :disk_usage gebruikt wat hoger is dan de toegestane limiet van :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/pt-BR/notifications.php: -------------------------------------------------------------------------------- 1 | 'Exception message: :message', 5 | 'exception_trace' => 'Exception trace: :trace', 6 | 'exception_message_title' => 'Exception message', 7 | 'exception_trace_title' => 'Exception trace', 8 | 9 | 'backup_failed_subject' => 'Falha no backup da aplicação :application_name', 10 | 'backup_failed_body' => 'Importante: Ocorreu um erro ao fazer o backup da aplicação :application_name', 11 | 12 | 'backup_successful_subject' => 'Backup realizado com sucesso: :application_name', 13 | 'backup_successful_subject_title' => 'Backup Realizado com sucesso!', 14 | 'backup_successful_body' => 'Boas notícias, um novo backup da aplicação :application_name foi criado no disco :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Falha na limpeza dos backups da aplicação :application_name.', 17 | 'cleanup_failed_body' => 'Um erro ocorreu ao fazer a limpeza dos backups da aplicação :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Limpeza dos backups da aplicação :application_name concluída!', 20 | 'cleanup_successful_subject_title' => 'Limpeza dos backups concluída!', 21 | 'cleanup_successful_body' => 'A limpeza dos backups da aplicação :application_name no disco :disk_name foi concluída.', 22 | 23 | 'healthy_backup_found_subject' => 'Os backups da aplicação :application_name no disco :disk_name estão em dia', 24 | 'healthy_backup_found_subject_title' => 'Os backups da aplicação :application_name estão em dia', 25 | 'healthy_backup_found_body' => 'Os backups da aplicação :application_name estão em dia. Bom trabalho!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Importante: Os backups da aplicação :application_name não estão em dia', 28 | 'unhealthy_backup_found_subject_title' => 'Importante: Os backups da aplicação :application_name não estão em dia. :problem', 29 | 'unhealthy_backup_found_body' => 'Os backups da aplicação :application_name no disco :disk_name não estão em dia.', 30 | 'unhealthy_backup_found_not_reachable' => 'O destino dos backups não pode ser alcançado. :error', 31 | 'unhealthy_backup_found_empty' => 'Não existem backups para essa aplicação.', 32 | 'unhealthy_backup_found_old' => 'O último backup realizado em :date é considerado muito antigo.', 33 | 'unhealthy_backup_found_unknown' => 'Desculpe, a exata razão não pode ser encontrada.', 34 | 'unhealthy_backup_found_full' => 'Os backups estão usando muito espaço de armazenamento. A utilização atual é de :disk_usage, o que é maior que o limite permitido de :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/pl/notifications.php: -------------------------------------------------------------------------------- 1 | 'Błąd: :message', 5 | 'exception_trace' => 'Zrzut błędu: :trace', 6 | 'exception_message_title' => 'Błąd', 7 | 'exception_trace_title' => 'Zrzut błędu', 8 | 9 | 'backup_failed_subject' => 'Tworzenie kopii zapasowej aplikacji :application_name nie powiodło się', 10 | 'backup_failed_body' => 'Ważne: Wystąpił błąd podczas tworzenia kopii zapasowej aplikacji :application_name', 11 | 12 | 'backup_successful_subject' => 'Pomyślnie utworzono kopię zapasową aplikacji :application_name', 13 | 'backup_successful_subject_title' => 'Nowa kopia zapasowa!', 14 | 'backup_successful_body' => 'Wspaniała wiadomość, nowa kopia zapasowa aplikacji :application_name została pomyślnie utworzona na dysku o nazwie :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Czyszczenie kopii zapasowych aplikacji :application_name nie powiodło się.', 17 | 'cleanup_failed_body' => 'Wystąpił błąd podczas czyszczenia kopii zapasowej aplikacji :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Kopie zapasowe aplikacji :application_name zostały pomyślnie wyczyszczone', 20 | 'cleanup_successful_subject_title' => 'Kopie zapasowe zostały pomyślnie wyczyszczone!', 21 | 'cleanup_successful_body' => 'Czyszczenie kopii zapasowych aplikacji :application_name na dysku :disk_name zakończone sukcesem.', 22 | 23 | 'healthy_backup_found_subject' => 'Kopie zapasowe aplikacji :application_name na dysku :disk_name są poprawne', 24 | 'healthy_backup_found_subject_title' => 'Kopie zapasowe aplikacji :application_name są poprawne', 25 | 'healthy_backup_found_body' => 'Kopie zapasowe aplikacji :application_name są poprawne. Dobra robota!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Ważne: Kopie zapasowe aplikacji :application_name są niepoprawne', 28 | 'unhealthy_backup_found_subject_title' => 'Ważne: Kopie zapasowe aplikacji :application_name są niepoprawne. :problem', 29 | 'unhealthy_backup_found_body' => 'Kopie zapasowe aplikacji :application_name na dysku :disk_name są niepoprawne.', 30 | 'unhealthy_backup_found_not_reachable' => 'Miejsce docelowe kopii zapasowej nie jest osiągalne. :error', 31 | 'unhealthy_backup_found_empty' => 'W aplikacji nie ma żadnej kopii zapasowych tej aplikacji.', 32 | 'unhealthy_backup_found_old' => 'Ostatnia kopia zapasowa wykonania dnia :date jest zbyt stara.', 33 | 'unhealthy_backup_found_unknown' => 'Niestety, nie można ustalić dokładnego błędu.', 34 | 'unhealthy_backup_found_full' => 'Kopie zapasowe zajmują zbyt dużo miejsca. Obecne użycie dysku :disk_usage jest większe od ustalonego limitu :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/fr/notifications.php: -------------------------------------------------------------------------------- 1 | 'Message de l\'exception : :message', 5 | 'exception_trace' => 'Trace de l\'exception : :trace', 6 | 'exception_message_title' => 'Message de l\'exception', 7 | 'exception_trace_title' => 'Trace de l\'exception', 8 | 9 | 'backup_failed_subject' => 'Échec de la sauvegarde de :application_name', 10 | 'backup_failed_body' => 'Important : Une erreur est survenue lors de la sauvegarde de :application_name', 11 | 12 | 'backup_successful_subject' => 'Succès de la sauvegarde de :application_name', 13 | 'backup_successful_subject_title' => 'Sauvegarde créée avec succès !', 14 | 'backup_successful_body' => 'Bonne nouvelle, une nouvelle sauvegarde de :application_name a été créée avec succès sur le disque nommé :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Le nettoyage des sauvegardes de :application_name a echoué.', 17 | 'cleanup_failed_body' => 'Une erreur est survenue lors du nettoyage des sauvegardes de :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Succès du nettoyage des sauvegardes de :application_name', 20 | 'cleanup_successful_subject_title' => 'Sauvegardes nettoyées avec succès !', 21 | 'cleanup_successful_body' => 'Le nettoyage des sauvegardes de :application_name sur le disque nommé :disk_name a été effectué avec succès.', 22 | 23 | 'healthy_backup_found_subject' => 'Les sauvegardes pour :application_name sur le disque :disk_name sont saines', 24 | 'healthy_backup_found_subject_title' => 'Les sauvegardes pour :application_name sont saines', 25 | 'healthy_backup_found_body' => 'Les sauvegardes pour :application_name sont considérées saines. Bon travail !', 26 | 27 | 'unhealthy_backup_found_subject' => 'Important : Les sauvegardes pour :application_name sont corrompues', 28 | 'unhealthy_backup_found_subject_title' => 'Important : Les sauvegardes pour :application_name sont corrompues. :problem', 29 | 'unhealthy_backup_found_body' => 'Les sauvegardes pour :application_name sur le disque :disk_name sont corrompues.', 30 | 'unhealthy_backup_found_not_reachable' => 'La destination de la sauvegarde n\'est pas accessible. :error', 31 | 'unhealthy_backup_found_empty' => 'Il n\'y a aucune sauvegarde pour cette application.', 32 | 'unhealthy_backup_found_old' => 'La dernière sauvegarde du :date est considérée trop vieille.', 33 | 'unhealthy_backup_found_unknown' => 'Désolé, une raison exacte ne peut être déterminée.', 34 | 'unhealthy_backup_found_full' => 'Les sauvegardes utilisent trop d\'espace disque. L\'utilisation actuelle est de :disk_usage alors que la limite autorisée est de :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 32 | \App\Http\Middleware\EncryptCookies::class, 33 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 34 | \Illuminate\Session\Middleware\StartSession::class, 35 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | \App\Http\Middleware\AuthGates::class, 40 | ], 41 | 42 | 'api' => [ 43 | 'throttle:60,1', 44 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 45 | ], 46 | ]; 47 | 48 | /** 49 | * The application's route middleware. 50 | * 51 | * These middleware may be assigned to groups or used individually. 52 | * 53 | * @var array 54 | */ 55 | protected $routeMiddleware = [ 56 | 'auth' => \App\Http\Middleware\Authenticate::class, 57 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 58 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 66 | ]; 67 | } 68 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/ro/notifications.php: -------------------------------------------------------------------------------- 1 | 'Cu excepția mesajului: :message', 5 | 'exception_trace' => 'Urmă excepţie: :trace', 6 | 'exception_message_title' => 'Mesaj de excepție', 7 | 'exception_trace_title' => 'Urmă excepţie', 8 | 9 | 'backup_failed_subject' => 'Nu s-a putut face copie de rezervă pentru :application_name', 10 | 'backup_failed_body' => 'Important: A apărut o eroare în timpul generării copiei de rezervă pentru :application_name', 11 | 12 | 'backup_successful_subject' => 'Copie de rezervă efectuată cu succes pentru :application_name', 13 | 'backup_successful_subject_title' => 'O nouă copie de rezervă a fost efectuată cu succes!', 14 | 'backup_successful_body' => 'Vești bune, o nouă copie de rezervă pentru :application_name a fost creată cu succes pe discul cu numele :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'Curățarea copiilor de rezervă pentru :application_name nu a reușit.', 17 | 'cleanup_failed_body' => 'A apărut o eroare în timpul curățirii copiilor de rezervă pentru :application_name', 18 | 19 | 'cleanup_successful_subject' => 'Curățarea copiilor de rezervă pentru :application_name a fost făcută cu succes', 20 | 'cleanup_successful_subject_title' => 'Curățarea copiilor de rezervă a fost făcută cu succes!', 21 | 'cleanup_successful_body' => 'Curățarea copiilor de rezervă pentru :application_name de pe discul cu numele :disk_name a fost făcută cu succes.', 22 | 23 | 'healthy_backup_found_subject' => 'Copiile de rezervă pentru :application_name de pe discul :disk_name sunt în regulă', 24 | 'healthy_backup_found_subject_title' => 'Copiile de rezervă pentru :application_name sunt în regulă', 25 | 'healthy_backup_found_body' => 'Copiile de rezervă pentru :application_name sunt considerate în regulă. Bună treabă!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Important: Copiile de rezervă pentru :application_name nu sunt în regulă', 28 | 'unhealthy_backup_found_subject_title' => 'Important: Copiile de rezervă pentru :application_name nu sunt în regulă. :problem', 29 | 'unhealthy_backup_found_body' => 'Copiile de rezervă pentru :application_name de pe discul :disk_name nu sunt în regulă.', 30 | 'unhealthy_backup_found_not_reachable' => 'Nu se poate ajunge la destinația copiilor de rezervă. :error', 31 | 'unhealthy_backup_found_empty' => 'Nu există copii de rezervă ale acestei aplicații.', 32 | 'unhealthy_backup_found_old' => 'Cea mai recentă copie de rezervă făcută la :date este considerată prea veche.', 33 | 'unhealthy_backup_found_unknown' => 'Ne pare rău, un motiv exact nu poate fi determinat.', 34 | 'unhealthy_backup_found_full' => 'Copiile de rezervă folosesc prea mult spațiu de stocare. Utilizarea curentă este de :disk_usage care este mai mare decât limita permisă de :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /resources/lang/vendor/backup/es/notifications.php: -------------------------------------------------------------------------------- 1 | 'Mensaje de la excepción: :message', 5 | 'exception_trace' => 'Traza de la excepción: :trace', 6 | 'exception_message_title' => 'Mensaje de la excepción', 7 | 'exception_trace_title' => 'Traza de la excepción', 8 | 9 | 'backup_failed_subject' => 'Copia de seguridad de :application_name fallida', 10 | 'backup_failed_body' => 'Importante: Ocurrió un error al realizar la copia de seguridad de :application_name', 11 | 12 | 'backup_successful_subject' => 'Se completó con éxito la copia de seguridad de :application_name', 13 | 'backup_successful_subject_title' => '¡Nueva copia de seguridad creada con éxito!', 14 | 'backup_successful_body' => 'Buenas noticias, una nueva copia de seguridad de :application_name fue creada con éxito en el disco llamado :disk_name.', 15 | 16 | 'cleanup_failed_subject' => 'La limpieza de copias de seguridad de :application_name falló.', 17 | 'cleanup_failed_body' => 'Ocurrió un error mientras se realizaba la limpieza de copias de seguridad de :application_name', 18 | 19 | 'cleanup_successful_subject' => 'La limpieza de copias de seguridad de :application_name se completó con éxito', 20 | 'cleanup_successful_subject_title' => '!Limpieza de copias de seguridad completada con éxito!', 21 | 'cleanup_successful_body' => 'La limpieza de copias de seguridad de :application_name en el disco llamado :disk_name se completo con éxito.', 22 | 23 | 'healthy_backup_found_subject' => 'Las copias de seguridad de :application_name en el disco :disk_name están en buen estado', 24 | 'healthy_backup_found_subject_title' => 'Las copias de seguridad de :application_name están en buen estado', 25 | 'healthy_backup_found_body' => 'Las copias de seguridad de :application_name se consideran en buen estado. ¡Buen trabajo!', 26 | 27 | 'unhealthy_backup_found_subject' => 'Importante: Las copias de seguridad de :application_name están en mal estado', 28 | 'unhealthy_backup_found_subject_title' => 'Importante: Las copias de seguridad de :application_name están en mal estado. :problem', 29 | 'unhealthy_backup_found_body' => 'Las copias de seguridad de :application_name en el disco :disk_name están en mal estado.', 30 | 'unhealthy_backup_found_not_reachable' => 'No se puede acceder al destino de la copia de seguridad. :error', 31 | 'unhealthy_backup_found_empty' => 'No existe ninguna copia de seguridad de esta aplicación.', 32 | 'unhealthy_backup_found_old' => 'La última copia de seguriad hecha en :date es demasiado antigua.', 33 | 'unhealthy_backup_found_unknown' => 'Lo siento, no es posible determinar la razón exacta.', 34 | 'unhealthy_backup_found_full' => 'Las copias de seguridad están ocupando demasiado espacio. El espacio utilizado actualmente es :disk_usage el cual es mayor que el límite permitido de :disk_limit.', 35 | ]; 36 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 40 | ]; 41 | 42 | public function registerMediaCollections() : void 43 | { 44 | $this->addMediaCollection('avatar') 45 | ->singleFile() 46 | ->useFallbackUrl(config('app.placeholder').'160.png') 47 | ->useFallbackPath(config('app.placeholder').'160.png') 48 | ->registerMediaConversions(function (Media $media) { 49 | $this 50 | ->addMediaConversion('thumb') 51 | ->width(160) 52 | ->height(160); 53 | }); 54 | } 55 | 56 | /** 57 | * Get all users 58 | * 59 | * @return mixed 60 | */ 61 | public static function getAllUsers() 62 | { 63 | return Cache::rememberForever('users.all', function() { 64 | return self::with('role')->latest('id')->get(); 65 | }); 66 | } 67 | 68 | /** 69 | * Flush the cache 70 | */ 71 | public static function flushCache() 72 | { 73 | Cache::forget('users.all'); 74 | } 75 | 76 | /** 77 | * The "booting" method of the model. 78 | * 79 | * @return void 80 | */ 81 | protected static function boot() 82 | { 83 | parent::boot(); 84 | 85 | static::updated(function () { 86 | self::flushCache(); 87 | }); 88 | 89 | static::created(function() { 90 | self::flushCache(); 91 | }); 92 | 93 | static::deleted(function() { 94 | self::flushCache(); 95 | }); 96 | } 97 | 98 | public function role() 99 | { 100 | return $this->belongsTo(Role::class); 101 | } 102 | 103 | 104 | public function hasPermission($permission): bool 105 | { 106 | return $this->role->permissions()->where('slug', $permission)->first() ? true : false; 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | 'endpoint' => env('AWS_ENDPOINT'), 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Symbolic Links 73 | |-------------------------------------------------------------------------- 74 | | 75 | | Here you may configure the symbolic links that will be created when the 76 | | `storage:link` Artisan command is executed. The array keys should be 77 | | the locations of the links and the values should be their targets. 78 | | 79 | */ 80 | 81 | 'links' => [ 82 | public_path('storage') => storage_path('app/public'), 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /resources/views/backend/menus/builder.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.backend.app') 2 | 3 | @section('title','Menu Builder') 4 | 5 | @section('content') 6 |
    7 |
    8 |
    9 |
    10 | 11 | 12 |
    13 |
    Menu Builder ({{ $menu->name }})
    14 |
    15 | 30 |
    31 |
    32 | 33 |
    34 |
    35 | {{-- how to use callout --}} 36 |
    37 |
    38 |
    How To Use:
    39 |

    You can output a menu anywhere on your site by calling menu('name')

    40 |
    41 |
    42 | 43 |
    44 | 50 | 51 |
    52 | 53 |
    54 |
    55 | @endsection 56 | 57 | @push('js') 58 | 74 | @endpush 75 | --------------------------------------------------------------------------------