├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .styleci.yml ├── LICENSE ├── Makefile ├── README.md ├── app ├── Actions │ └── Fortify │ │ ├── CreateNewUser.php │ │ ├── PasswordValidationRules.php │ │ ├── ResetUserPassword.php │ │ └── UpdateUserPassword.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Controller.php │ │ ├── Fortify │ │ │ └── ProfileInformationController.php │ │ └── UserProfileController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── AuthenticateSession.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php │ └── Resources │ │ └── User.php ├── Models │ ├── Traits │ │ └── HasProfilePhoto.php │ └── User.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── FortifyServiceProvider.php │ └── RouteServiceProvider.php └── View │ └── Components │ ├── App │ └── Header.php │ ├── AppLayout.php │ └── GuestLayout.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── cors.php ├── database.php ├── filesystems.php ├── fortify.php ├── hashing.php ├── logging.php ├── mail.php ├── queue.php ├── sanctum.php ├── services.php ├── session.php └── view.php ├── database ├── .gitignore ├── factories │ └── UserFactory.php ├── migrations │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2014_10_12_200000_add_two_factor_columns_to_users_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2019_12_14_000001_create_personal_access_tokens_table.php │ └── 2020_10_30_072025_create_sessions_table.php └── seeders │ └── DatabaseSeeder.php ├── laradock ├── .devcontainer │ └── devcontainer.example.json ├── .editorconfig ├── .gitignore ├── .gitpod.yml ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README-zh.md ├── README.md ├── docker-compose.sync.yml ├── docker-compose.yml ├── docker-sync.yml ├── env-example ├── mailhog │ └── Dockerfile ├── mysql │ ├── Dockerfile │ ├── docker-entrypoint-initdb.d │ │ ├── .gitignore │ │ └── createdb.sql.example │ └── my.cnf ├── nginx │ ├── Dockerfile │ ├── logrotate │ │ └── nginx │ ├── nginx.conf │ ├── sites │ │ ├── .gitignore │ │ ├── app.conf.example │ │ ├── confluence.conf.example │ │ ├── default.conf │ │ ├── laravel.conf.example │ │ ├── laravel_varnish.conf.example │ │ └── symfony.conf.example │ ├── ssl │ │ └── .gitignore │ └── startup.sh ├── php-fpm │ ├── Dockerfile │ ├── aerospike.ini │ ├── laravel.ini │ ├── mysql.ini │ ├── opcache.ini │ ├── phalcon.ini │ ├── php5.6.ini │ ├── php7.0.ini │ ├── php7.1.ini │ ├── php7.2.ini │ ├── php7.3.ini │ ├── php7.4.ini │ ├── xdebug │ ├── xdebug.ini │ ├── xhprof.ini │ └── xlaravel.pool.conf ├── phpmyadmin │ └── Dockerfile ├── portainer │ └── Dockerfile ├── sync.sh ├── travis-build.sh └── workspace │ ├── Dockerfile │ ├── aerospike.ini │ ├── aliases.sh │ ├── auth.json │ ├── composer.json │ ├── crontab │ └── laradock │ ├── git-prompt.sh │ ├── insecure_id_rsa │ ├── insecure_id_rsa.ppk │ ├── insecure_id_rsa.pub │ ├── mc │ └── config.json │ ├── sources.sh │ └── xdebug.ini ├── package-lock.json ├── package.json ├── phpunit.xml ├── public ├── .htaccess ├── app │ ├── scripts.js │ └── styles.css ├── favicon.ico ├── guest │ ├── manifest.js │ ├── scripts.js │ ├── styles.css │ └── vendor.js ├── images │ ├── avatar.svg │ ├── bg-masthead.jpg │ └── market-launch-pana.svg ├── index.php ├── mix-manifest.json ├── robots.txt └── web.config ├── resources ├── assets │ └── images │ │ ├── avatar.svg │ │ ├── bg-masthead.jpg │ │ └── market-launch-pana.svg ├── js │ ├── app │ │ ├── components │ │ │ ├── Loading.vue │ │ │ ├── Modal.vue │ │ │ ├── UpdateProfile.vue │ │ │ ├── UpdateProfilePhoto.vue │ │ │ └── UserProfileLink.vue │ │ ├── popovers.js │ │ ├── scripts.js │ │ └── toasts.js │ ├── axios.js │ ├── guest │ │ └── scripts.js │ ├── navbar.js │ └── store │ │ ├── index.js │ │ └── modules │ │ └── user.js ├── lang │ └── en │ │ ├── auth.php │ │ ├── pagination.php │ │ ├── passwords.php │ │ └── validation.php ├── sass │ ├── _floating-label.scss │ ├── app │ │ ├── _buttons.scss │ │ ├── _divider.scss │ │ ├── _footer.scss │ │ ├── _global.scss │ │ ├── _masthead.scss │ │ ├── _modal.scss │ │ ├── _navbar.scss │ │ ├── _profile-photo.scss │ │ ├── _toast.scss │ │ ├── _variables.scss │ │ └── styles.scss │ └── guest │ │ ├── _global.scss │ │ ├── _masthead.scss │ │ ├── _navbar.scss │ │ ├── _variables.scss │ │ └── styles.scss └── views │ ├── auth │ ├── confirm-password.blade.php │ ├── forgot-password.blade.php │ ├── login.blade.php │ ├── profile.blade.php │ ├── register.blade.php │ ├── reset-password.blade.php │ └── verify-email.blade.php │ ├── components │ ├── layouts │ │ ├── app │ │ │ ├── footer.blade.php │ │ │ ├── header.blade.php │ │ │ └── toasts.blade.php │ │ ├── guest │ │ │ ├── footer.blade.php │ │ │ └── header.blade.php │ │ └── session-alerts.blade.php │ └── modal.blade.php │ ├── dashboard.blade.php │ ├── layouts │ ├── app.blade.php │ └── guest.blade.php │ └── welcome.blade.php ├── routes ├── api.php ├── channels.php ├── console.php └── web.php ├── server.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── debugbar │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── tests ├── CreatesApplication.php ├── Feature │ └── ExampleTest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── webpack.mix.js /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 9 | trim_trailing_whitespace = true 10 | 11 | [*.md] 12 | trim_trailing_whitespace = false 13 | 14 | [*.{yml,yaml}] 15 | indent_size = 2 16 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Vurtify 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | LOG_LEVEL=debug 9 | 10 | DB_CONNECTION=mysql 11 | DB_HOST=127.0.0.1 12 | DB_PORT=3306 13 | DB_DATABASE=default 14 | DB_USERNAME=root 15 | DB_PASSWORD= 16 | 17 | BROADCAST_DRIVER=log 18 | CACHE_DRIVER=file 19 | QUEUE_CONNECTION=sync 20 | SESSION_DRIVER=database 21 | SESSION_LIFETIME=120 22 | 23 | REDIS_HOST=127.0.0.1 24 | REDIS_PASSWORD=null 25 | REDIS_PORT=6379 26 | 27 | MAIL_MAILER=smtp 28 | MAIL_HOST=mailhog 29 | MAIL_PORT=1025 30 | MAIL_USERNAME=null 31 | MAIL_PASSWORD=null 32 | MAIL_ENCRYPTION=null 33 | MAIL_FROM_ADDRESS=info@example.com 34 | MAIL_FROM_NAME="${APP_NAME}" 35 | 36 | AWS_ACCESS_KEY_ID= 37 | AWS_SECRET_ACCESS_KEY= 38 | AWS_DEFAULT_REGION=us-east-1 39 | AWS_BUCKET= 40 | 41 | PUSHER_APP_ID= 42 | PUSHER_APP_KEY= 43 | PUSHER_APP_SECRET= 44 | PUSHER_APP_CLUSTER=mt1 45 | 46 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 47 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 48 | 49 | # Laravel Debugbar 50 | APP_DEBUG=true 51 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | .env 7 | .env.backup 8 | .phpunit.result.cache 9 | Homestead.json 10 | Homestead.yaml 11 | npm-debug.log 12 | yarn-error.log 13 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - no_unused_imports 5 | finder: 6 | not-name: 7 | - index.php 8 | - server.php 9 | js: 10 | finder: 11 | not-name: 12 | - webpack.mix.js 13 | css: true 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Mahmoud Elewa 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | -include .env 2 | .PHONY: test seed bash up stop down exec 3 | 4 | # the first target is the one that executed by default 5 | # run all containers (workspace php-fpm nginx mysql phpmyadmin 6 | # portainer docker-in-docker mailhog) 7 | up: 8 | @cd laradock && sudo docker-compose up -d --build 9 | 10 | test: 11 | @cd laradock && docker-compose exec --user=laradock workspace php artisan test 12 | 13 | seed: 14 | @cd laradock && docker-compose exec --user=laradock workspace php artisan migrate:fresh --seed 15 | 16 | bash: 17 | @cd laradock && docker-compose exec --user=laradock workspace bash 18 | 19 | npm-watch: 20 | @cd laradock && docker-compose exec --user=laradock workspace npm run watch 21 | 22 | # stop all containers 23 | stop: 24 | @cd laradock && docker-compose stop 25 | 26 | down: 27 | @cd laradock && docker-compose down 28 | 29 | # execute a command on the container 30 | # usage example: make exec command="npm run dev" 31 | exec: 32 | ifndef command 33 | $(error command is required) 34 | endif 35 | @cd laradock && docker-compose exec --user=laradock workspace $(command) 36 | -------------------------------------------------------------------------------- /app/Actions/Fortify/CreateNewUser.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'max:255'], 24 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 25 | 'password' => $this->passwordRules(), 26 | ])->validate(); 27 | 28 | return User::create([ 29 | 'name' => $input['name'], 30 | 'email' => $input['email'], 31 | 'password' => Hash::make($input['password']), 32 | ]); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Actions/Fortify/PasswordValidationRules.php: -------------------------------------------------------------------------------- 1 | $this->passwordRules(), 24 | ])->validate(); 25 | 26 | $user->forceFill([ 27 | 'password' => Hash::make($input['password']), 28 | ])->save(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserPassword.php: -------------------------------------------------------------------------------- 1 | ['required', 'string'], 24 | 'password' => $this->passwordRules(), 25 | ])->after(function ($validator) use ($user, $input) { 26 | if (! Hash::check($input['current_password'], $user->password)) { 27 | $validator->errors()->add('current_password', __('The provided password does not match your current password.')); 28 | } 29 | }); 30 | 31 | if(optional($validator)->fails()){ 32 | return back()->withErrors($validator, 'updatePassword'); 33 | } 34 | 35 | $user->forceFill([ 36 | 'password' => Hash::make($input['password']), 37 | ])->save(); 38 | 39 | return back()->with('status-success-toast', 'Password Updated!'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /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/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | all(), [ 25 | 'name' => ['required', 'string', 'max:255'], 26 | 'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore(Auth::user()->id)], 27 | ]); 28 | 29 | $this->checkValidation($validator); 30 | 31 | if ($request->email !== Auth::user()->email && 32 | Auth::user() instanceof MustVerifyEmail) { 33 | $this->updateVerifiedUser(Auth::user(), $request->all()); 34 | 35 | } else { 36 | Auth::user()->forceFill([ 37 | 'name' => $request->name, 38 | 'email' => $request->email, 39 | ])->save(); 40 | } 41 | 42 | return response()->json([ 43 | 'status' => 'ok', 44 | 'message' => 'Profile Updated!', 45 | 'data' => new UserResource(Auth::user()) 46 | ]); 47 | } 48 | 49 | /** 50 | * Update the user's profile photo. 51 | * 52 | * @param \Illuminate\Http\Request $request 53 | * @return \Illuminate\Http\Response 54 | */ 55 | public function updateProfilePhoto(Request $request) 56 | { 57 | $validator = Validator::make($request->all(), [ 58 | 'photo' => ['required', 'image', 'max:1024'], 59 | ]); 60 | 61 | $this->checkValidation($validator); 62 | 63 | Auth::user()->updateProfilePhoto($request->photo); 64 | 65 | return response()->json([ 66 | 'status' => 'ok', 67 | 'message' => 'Profile photo Uploaded!', 68 | 'data' => new UserResource(Auth::user()) 69 | ]); 70 | } 71 | 72 | /** 73 | * Update the given verified user's profile information. 74 | * 75 | * @param mixed $user 76 | * @param array $input 77 | * @return void 78 | */ 79 | protected function updateVerifiedUser($user, array $input) 80 | { 81 | $user->forceFill([ 82 | 'name' => $input['name'], 83 | 'email' => $input['email'], 84 | 'email_verified_at' => null, 85 | ])->save(); 86 | 87 | $user->sendEmailVerificationNotification(); 88 | } 89 | 90 | /** 91 | * check Validation. 92 | * 93 | * @param ValidatorContract $validator 94 | */ 95 | protected function checkValidation(ValidatorContract $validator) 96 | { 97 | if(optional($validator)->fails()){ 98 | return response()->json([ 99 | 'status' => 'error', 100 | 'data' => $validator->errors(), 101 | ], 422); 102 | } 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | \App\Http\Middleware\AuthenticateSession::class, 37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 38 | \App\Http\Middleware\VerifyCsrfToken::class, 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 40 | ], 41 | 42 | 'api' => [ 43 | 'throttle:api', 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 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 59 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 60 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 61 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 62 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 63 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 64 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 65 | ]; 66 | } 67 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/AuthenticateSession.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | $this->name, 19 | 'email' => $this->email, 20 | 'profilePhotoUrl' => $this->profile_photo_url, 21 | ]; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /app/Models/Traits/HasProfilePhoto.php: -------------------------------------------------------------------------------- 1 | profile_photo_path, function ($previous) use ($photo) { 19 | $this->forceFill([ 20 | 'profile_photo_path' => $photo->storePublicly( 21 | 'profile-photos', ['disk' => $this->profilePhotoDisk()] 22 | ), 23 | ])->save(); 24 | 25 | if ($previous) { 26 | Storage::disk($this->profilePhotoDisk())->delete($previous); 27 | } 28 | }); 29 | } 30 | 31 | /** 32 | * Delete the user's profile photo. 33 | * 34 | * @return void 35 | */ 36 | public function deleteProfilePhoto() 37 | { 38 | Storage::disk($this->profilePhotoDisk())->delete($this->profile_photo_path); 39 | 40 | $this->forceFill([ 41 | 'profile_photo_path' => null, 42 | ])->save(); 43 | } 44 | 45 | /** 46 | * Get the URL to the user's profile photo. 47 | * 48 | * @return string 49 | */ 50 | public function getProfilePhotoUrlAttribute() 51 | { 52 | return $this->profile_photo_path 53 | ? Storage::disk($this->profilePhotoDisk())->url($this->profile_photo_path) 54 | : $this->defaultProfilePhotoUrl(); 55 | } 56 | 57 | /** 58 | * Get the default profile photo URL if no profile photo has been uploaded. 59 | * 60 | * @return string 61 | */ 62 | protected function defaultProfilePhotoUrl() 63 | { 64 | return 'https://ui-avatars.com/api/?name='.urlencode($this->name).'&color=7F9CF5&background=EBF4FF'; 65 | } 66 | 67 | /** 68 | * Get the disk that profile photos should be stored on. 69 | * 70 | * @return string 71 | */ 72 | protected function profilePhotoDisk() 73 | { 74 | return isset($_ENV['VAPOR_ARTIFACT_NAME']) ? 's3' : 'public'; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 51 | ]; 52 | 53 | /** 54 | * The accessors to append to the model's array form. 55 | * 56 | * @var array 57 | */ 58 | protected $appends = [ 59 | 'profile_photo_url', 60 | ]; 61 | } 62 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.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/Providers/BroadcastServiceProvider.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 | // 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Providers/FortifyServiceProvider.php: -------------------------------------------------------------------------------- 1 | email)->first(); 35 | 36 | if ($user && 37 | Hash::check($request->password, $user->password)) { 38 | return $user; 39 | } 40 | }); 41 | 42 | Fortify::loginView(function () { 43 | return view('auth.login'); 44 | }); 45 | 46 | Fortify::registerView(function () { 47 | return view('auth.register'); 48 | }); 49 | 50 | Fortify::requestPasswordResetLinkView(function () { 51 | return view('auth.forgot-password'); 52 | }); 53 | 54 | Fortify::resetPasswordView(function ($request) { 55 | return view('auth.reset-password', ['request' => $request]); 56 | }); 57 | 58 | Fortify::verifyEmailView(function () { 59 | return view('auth.verify-email'); 60 | }); 61 | 62 | Fortify::confirmPasswordView(function () { 63 | return view('auth.confirm-password'); 64 | }); 65 | 66 | Fortify::createUsersUsing(CreateNewUser::class); 67 | Fortify::resetUserPasswordsUsing(ResetUserPassword::class); 68 | Fortify::updateUserPasswordsUsing(UpdateUserPassword::class); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 39 | 40 | $this->routes(function () { 41 | Route::prefix('api') 42 | ->middleware('api') 43 | ->namespace($this->namespace) 44 | ->group(base_path('routes/api.php')); 45 | 46 | Route::middleware('web') 47 | ->namespace($this->namespace) 48 | ->group(base_path('routes/web.php')); 49 | }); 50 | } 51 | 52 | /** 53 | * Configure the rate limiters for the application. 54 | * 55 | * @return void 56 | */ 57 | protected function configureRateLimiting() 58 | { 59 | RateLimiter::for('api', function (Request $request) { 60 | return Limit::perMinute(60); 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /app/View/Components/App/Header.php: -------------------------------------------------------------------------------- 1 | new UserResource(Auth::user()), 20 | ]); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/View/Components/AppLayout.php: -------------------------------------------------------------------------------- 1 | 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "m-elewa/vurtify", 3 | "type": "project", 4 | "description": "Laravel 8 boilerplate project with Fortify + Bootstrap 5 + Vue 3", 5 | "keywords": [ 6 | "framework", 7 | "laravel", 8 | "fortify", 9 | "bootstrap" 10 | ], 11 | "license": "MIT", 12 | "require": { 13 | "php": "^7.3", 14 | "fideloper/proxy": "^4.2", 15 | "fruitcake/laravel-cors": "^2.0", 16 | "guzzlehttp/guzzle": "^7.0.1", 17 | "jenssegers/agent": "^2.6", 18 | "laravel/fortify": "^1.0", 19 | "laravel/framework": "^8.0", 20 | "laravel/sanctum": "^2.6", 21 | "laravel/tinker": "^2.0" 22 | }, 23 | "require-dev": { 24 | "facade/ignition": "^2.3.6", 25 | "fzaninotto/faker": "^1.9.1", 26 | "mockery/mockery": "^1.3.1", 27 | "nunomaduro/collision": "^5.0", 28 | "phpunit/phpunit": "^9.3", 29 | "barryvdh/laravel-debugbar": "^3.3" 30 | }, 31 | "config": { 32 | "optimize-autoloader": true, 33 | "preferred-install": "dist", 34 | "sort-packages": true 35 | }, 36 | "extra": { 37 | "laravel": { 38 | "dont-discover": [] 39 | } 40 | }, 41 | "autoload": { 42 | "psr-4": { 43 | "App\\": "app/", 44 | "Database\\Factories\\": "database/factories/", 45 | "Database\\Seeders\\": "database/seeders/" 46 | } 47 | }, 48 | "autoload-dev": { 49 | "psr-4": { 50 | "Tests\\": "tests/" 51 | } 52 | }, 53 | "minimum-stability": "dev", 54 | "prefer-stable": true, 55 | "scripts": { 56 | "post-autoload-dump": [ 57 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 58 | "@php artisan package:discover --ansi" 59 | ], 60 | "post-root-package-install": [ 61 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 62 | ], 63 | "post-create-project-cmd": [ 64 | "@php artisan key:generate --ansi" 65 | ] 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Cache Stores 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may define all of the cache "stores" for your application as 29 | | well as their drivers. You may even define multiple stores for the 30 | | same cache driver to group types of items stored in your caches. 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | ], 50 | 51 | 'file' => [ 52 | 'driver' => 'file', 53 | 'path' => storage_path('framework/cache/data'), 54 | ], 55 | 56 | 'memcached' => [ 57 | 'driver' => 'memcached', 58 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 59 | 'sasl' => [ 60 | env('MEMCACHED_USERNAME'), 61 | env('MEMCACHED_PASSWORD'), 62 | ], 63 | 'options' => [ 64 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 65 | ], 66 | 'servers' => [ 67 | [ 68 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 69 | 'port' => env('MEMCACHED_PORT', 11211), 70 | 'weight' => 100, 71 | ], 72 | ], 73 | ], 74 | 75 | 'redis' => [ 76 | 'driver' => 'redis', 77 | 'connection' => 'cache', 78 | ], 79 | 80 | 'dynamodb' => [ 81 | 'driver' => 'dynamodb', 82 | 'key' => env('AWS_ACCESS_KEY_ID'), 83 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 84 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 85 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 86 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 87 | ], 88 | 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Cache Key Prefix 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When utilizing a RAM based store such as APC or Memcached, there might 97 | | be other applications utilizing the same cache. So, we'll specify a 98 | | value to get prefixed to all our keys so we can avoid collisions. 99 | | 100 | */ 101 | 102 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Log Channels 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may configure the log channels for your application. Out of 28 | | the box, Laravel uses the Monolog PHP logging library. This gives 29 | | you a variety of powerful log handlers / formatters to utilize. 30 | | 31 | | Available Drivers: "single", "daily", "slack", "syslog", 32 | | "errorlog", "monolog", 33 | | "custom", "stack" 34 | | 35 | */ 36 | 37 | 'channels' => [ 38 | 'stack' => [ 39 | 'driver' => 'stack', 40 | 'channels' => ['single'], 41 | 'ignore_exceptions' => false, 42 | ], 43 | 44 | 'single' => [ 45 | 'driver' => 'single', 46 | 'path' => storage_path('logs/laravel.log'), 47 | 'level' => env('LOG_LEVEL', 'debug'), 48 | ], 49 | 50 | 'daily' => [ 51 | 'driver' => 'daily', 52 | 'path' => storage_path('logs/laravel.log'), 53 | 'level' => env('LOG_LEVEL', 'debug'), 54 | 'days' => 14, 55 | ], 56 | 57 | 'slack' => [ 58 | 'driver' => 'slack', 59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 60 | 'username' => 'Laravel Log', 61 | 'emoji' => ':boom:', 62 | 'level' => env('LOG_LEVEL', 'critical'), 63 | ], 64 | 65 | 'papertrail' => [ 66 | 'driver' => 'monolog', 67 | 'level' => env('LOG_LEVEL', 'debug'), 68 | 'handler' => SyslogUdpHandler::class, 69 | 'handler_with' => [ 70 | 'host' => env('PAPERTRAIL_URL'), 71 | 'port' => env('PAPERTRAIL_PORT'), 72 | ], 73 | ], 74 | 75 | 'stderr' => [ 76 | 'driver' => 'monolog', 77 | 'handler' => StreamHandler::class, 78 | 'formatter' => env('LOG_STDERR_FORMATTER'), 79 | 'with' => [ 80 | 'stream' => 'php://stderr', 81 | ], 82 | ], 83 | 84 | 'syslog' => [ 85 | 'driver' => 'syslog', 86 | 'level' => env('LOG_LEVEL', 'debug'), 87 | ], 88 | 89 | 'errorlog' => [ 90 | 'driver' => 'errorlog', 91 | 'level' => env('LOG_LEVEL', 'debug'), 92 | ], 93 | 94 | 'null' => [ 95 | 'driver' => 'monolog', 96 | 'handler' => NullHandler::class, 97 | ], 98 | 99 | 'emergency' => [ 100 | 'path' => storage_path('logs/laravel.log'), 101 | ], 102 | ], 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", 32 | | "postmark", "log", "array" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 40 | 'port' => env('MAIL_PORT', 587), 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 42 | 'username' => env('MAIL_USERNAME'), 43 | 'password' => env('MAIL_PASSWORD'), 44 | 'timeout' => null, 45 | 'auth_mode' => null, 46 | ], 47 | 48 | 'ses' => [ 49 | 'transport' => 'ses', 50 | ], 51 | 52 | 'mailgun' => [ 53 | 'transport' => 'mailgun', 54 | ], 55 | 56 | 'postmark' => [ 57 | 'transport' => 'postmark', 58 | ], 59 | 60 | 'sendmail' => [ 61 | 'transport' => 'sendmail', 62 | 'path' => '/usr/sbin/sendmail -bs', 63 | ], 64 | 65 | 'log' => [ 66 | 'transport' => 'log', 67 | 'channel' => env('MAIL_LOG_CHANNEL'), 68 | ], 69 | 70 | 'array' => [ 71 | 'transport' => 'array', 72 | ], 73 | ], 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Global "From" Address 78 | |-------------------------------------------------------------------------- 79 | | 80 | | You may wish for all e-mails sent by your application to be sent from 81 | | the same address. Here, you may specify a name and address that is 82 | | used globally for all e-mails that are sent by your application. 83 | | 84 | */ 85 | 86 | 'from' => [ 87 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 88 | 'name' => env('MAIL_FROM_NAME', 'Example'), 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Markdown Mail Settings 94 | |-------------------------------------------------------------------------- 95 | | 96 | | If you are using Markdown based email rendering, you may configure your 97 | | theme and component paths here, allowing you to customize the design 98 | | of the emails. Or, you may simply stick with the Laravel defaults! 99 | | 100 | */ 101 | 102 | 'markdown' => [ 103 | 'theme' => 'default', 104 | 105 | 'paths' => [ 106 | resource_path('views/vendor/mail'), 107 | ], 108 | ], 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | 'block_for' => 0, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => env('AWS_ACCESS_KEY_ID'), 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 58 | 'suffix' => env('SQS_SUFFIX'), 59 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 60 | ], 61 | 62 | 'redis' => [ 63 | 'driver' => 'redis', 64 | 'connection' => 'default', 65 | 'queue' => env('REDIS_QUEUE', 'default'), 66 | 'retry_after' => 90, 67 | 'block_for' => null, 68 | ], 69 | 70 | ], 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Failed Queue Jobs 75 | |-------------------------------------------------------------------------- 76 | | 77 | | These options configure the behavior of failed queue job logging so you 78 | | can control which database and table are used to store the jobs that 79 | | have failed. You may change them to any database / table you wish. 80 | | 81 | */ 82 | 83 | 'failed' => [ 84 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 85 | 'database' => env('DB_CONNECTION', 'mysql'), 86 | 'table' => 'failed_jobs', 87 | ], 88 | 89 | ]; 90 | -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- 1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', 'localhost,127.0.0.1,127.0.0.1:8000,::1')), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Expiration Minutes 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This value controls the number of minutes until an issued token will be 24 | | considered expired. If this value is null, personal access tokens do 25 | | not expire. This won't tweak the lifetime of first-party sessions. 26 | | 27 | */ 28 | 29 | 'expiration' => null, 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Sanctum Middleware 34 | |-------------------------------------------------------------------------- 35 | | 36 | | When authenticating your first-party SPA with Sanctum you may need to 37 | | customize some of the middleware Sanctum uses while processing the 38 | | request. You may change the middleware listed below as required. 39 | | 40 | */ 41 | 42 | 'middleware' => [ 43 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 44 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 45 | ], 46 | 47 | ]; 48 | -------------------------------------------------------------------------------- /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 | ]; 34 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /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 | } 34 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->timestamp('email_verified_at')->nullable(); 21 | $table->string('password'); 22 | $table->rememberToken(); 23 | $table->foreignId('current_team_id')->nullable(); 24 | $table->text('profile_photo_path')->nullable(); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('users'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php: -------------------------------------------------------------------------------- 1 | text('two_factor_secret') 18 | ->after('password') 19 | ->nullable(); 20 | 21 | $table->text('two_factor_recovery_codes') 22 | ->after('two_factor_secret') 23 | ->nullable(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::table('users', function (Blueprint $table) { 35 | $table->dropColumn('two_factor_secret', 'two_factor_recovery_codes'); 36 | }); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('uuid')->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 | -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->morphs('tokenable'); 19 | $table->string('name'); 20 | $table->string('token', 64)->unique(); 21 | $table->text('abilities')->nullable(); 22 | $table->timestamp('last_used_at')->nullable(); 23 | $table->timestamps(); 24 | }); 25 | } 26 | 27 | /** 28 | * Reverse the migrations. 29 | * 30 | * @return void 31 | */ 32 | public function down() 33 | { 34 | Schema::dropIfExists('personal_access_tokens'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /database/migrations/2020_10_30_072025_create_sessions_table.php: -------------------------------------------------------------------------------- 1 | string('id')->primary(); 18 | $table->foreignId('user_id')->nullable()->index(); 19 | $table->string('ip_address', 45)->nullable(); 20 | $table->text('user_agent')->nullable(); 21 | $table->text('payload'); 22 | $table->integer('last_activity')->index(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('sessions'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /laradock/.devcontainer/devcontainer.example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Laradock", 3 | "dockerComposeFile": "../docker-compose.yml", 4 | "remoteUser": "laradock", 5 | "runServices": [ 6 | "nginx", 7 | "postgres", 8 | "pgadmin" 9 | ], 10 | "service": "workspace", 11 | "workspaceFolder": "/var/www", 12 | "shutdownAction": "stopCompose", 13 | "postCreateCommand": "uname -a" 14 | } 15 | -------------------------------------------------------------------------------- /laradock/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | 7 | [*] 8 | charset = utf-8 9 | 10 | [{Dockerfile,docker-compose.yml}] 11 | indent_style = space 12 | indent_size = 2 13 | -------------------------------------------------------------------------------- /laradock/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | /logs 3 | /data 4 | .env 5 | /.project 6 | .docker-sync 7 | /jenkins/jenkins_home 8 | 9 | /logstash/pipeline/*.conf 10 | /logstash/config/pipelines.yml 11 | 12 | /nginx/ssl/*.crt 13 | /nginx/ssl/*.key 14 | /nginx/ssl/*.csr 15 | 16 | /.devcontainer/* 17 | !/.devcontainer/devcontainer.example.json 18 | !/.devcontainer/docker-compose.extend-example.yml 19 | 20 | docker-compose.custom.yml 21 | 22 | .DS_Store 23 | -------------------------------------------------------------------------------- /laradock/.gitpod.yml: -------------------------------------------------------------------------------- 1 | image: gitpod/workspace-full 2 | 3 | -------------------------------------------------------------------------------- /laradock/.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | sudo: required 3 | services: 4 | - docker 5 | 6 | env: 7 | matrix: 8 | - HUGO_VERSION=0.20.2 9 | 10 | - PHP_VERSION=5.6 BUILD_SERVICE=workspace 11 | - PHP_VERSION=7.0 BUILD_SERVICE=workspace 12 | - PHP_VERSION=7.1 BUILD_SERVICE=workspace 13 | - PHP_VERSION=7.2 BUILD_SERVICE=workspace 14 | - PHP_VERSION=7.3 BUILD_SERVICE=workspace 15 | - PHP_VERSION=7.4 BUILD_SERVICE=workspace 16 | 17 | - PHP_VERSION=5.6 BUILD_SERVICE=php-fpm 18 | - PHP_VERSION=7.0 BUILD_SERVICE=php-fpm 19 | - PHP_VERSION=7.1 BUILD_SERVICE=php-fpm 20 | - PHP_VERSION=7.2 BUILD_SERVICE=php-fpm 21 | - PHP_VERSION=7.3 BUILD_SERVICE=php-fpm 22 | - PHP_VERSION=7.4 BUILD_SERVICE=php-fpm 23 | 24 | - PHP_VERSION=hhvm BUILD_SERVICE=hhvm 25 | 26 | # - PHP_VERSION=5.6 BUILD_SERVICE=php-worker 27 | - PHP_VERSION=7.0 BUILD_SERVICE=php-worker 28 | - PHP_VERSION=7.1 BUILD_SERVICE=php-worker 29 | - PHP_VERSION=7.2 BUILD_SERVICE=php-worker 30 | - PHP_VERSION=7.3 BUILD_SERVICE=php-worker 31 | - PHP_VERSION=7.4 BUILD_SERVICE=php-worker 32 | 33 | - PHP_VERSION=7.0 BUILD_SERVICE=laravel-horizon 34 | - PHP_VERSION=7.1 BUILD_SERVICE=laravel-horizon 35 | - PHP_VERSION=7.2 BUILD_SERVICE=laravel-horizon 36 | - PHP_VERSION=7.3 BUILD_SERVICE=laravel-horizon 37 | - PHP_VERSION=7.4 BUILD_SERVICE=laravel-horizon 38 | 39 | - PHP_VERSION=NA BUILD_SERVICE=solr 40 | - PHP_VERSION=NA BUILD_SERVICE="mssql rethinkdb aerospike" 41 | - PHP_VERSION=NA BUILD_SERVICE="blackfire minio percona nginx caddy apache2 mysql mariadb postgres postgres-postgis neo4j mongo redis cassandra" 42 | - PHP_VERSION=NA BUILD_SERVICE="adminer phpmyadmin pgadmin" 43 | - PHP_VERSION=NA BUILD_SERVICE="memcached beanstalkd beanstalkd-console rabbitmq elasticsearch certbot mailhog maildev selenium jenkins proxy proxy2 haproxy gearman" 44 | - PHP_VERSION=NA BUILD_SERVICE="kibana grafana laravel-echo-server" 45 | - PHP_VERSION=NA BUILD_SERVICE="ipython-controller manticore" 46 | # - PHP_VERSION=NA BUILD_SERVICE="aws" 47 | 48 | # Installing a newer Docker version 49 | before_install: 50 | - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 51 | - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 52 | - sudo apt-get update 53 | - sudo apt-get -y install docker-ce 54 | - docker version 55 | 56 | script: ./travis-build.sh 57 | 58 | deploy: 59 | provider: pages 60 | skip_cleanup: true 61 | local_dir: docs 62 | github_token: $GITHUB_TOKEN 63 | on: 64 | branch: master 65 | condition: -n "${HUGO_VERSION}" 66 | 67 | notifications: 68 | email: false 69 | -------------------------------------------------------------------------------- /laradock/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Laradock Code of Conduct 2 | 3 | We follow the [Contributor Covenant](https://www.contributor-covenant.org/version/1/4/code-of-conduct) Code of Conduct. 4 | -------------------------------------------------------------------------------- /laradock/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Thank you for your consideration 2 | 3 | Checkout out our [contribution guide](http://laradock.io/contributing). 4 | -------------------------------------------------------------------------------- /laradock/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright 2018 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /laradock/docker-compose.sync.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | 5 | volumes: 6 | applications-sync: 7 | external: 8 | name: "applications-docker-sync" 9 | -------------------------------------------------------------------------------- /laradock/docker-sync.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | 3 | options: 4 | verbose: false 5 | syncs: 6 | applications-docker-sync: # name of the intermediary sync volume 7 | compose-dev-file-path: 'docker-compose.sync.yml' # docker-compose override file 8 | 9 | src: '${APP_CODE_PATH_HOST}' # host source directory 10 | sync_userid: 1000 # giving permissions to www-data user (as defined in nginx and php-fpm Dockerfiles) 11 | sync_strategy: '${DOCKER_SYNC_STRATEGY}' # for osx use 'native_osx', for windows use 'unison' 12 | 13 | sync_excludes: ['laradock', 'ignored_folder_example'] # ignored directories 14 | -------------------------------------------------------------------------------- /laradock/mailhog/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mailhog/mailhog 2 | 3 | LABEL maintainer="Mahmoud Zalt " 4 | 5 | CMD ["Mailhog"] 6 | 7 | EXPOSE 1025 8025 8 | -------------------------------------------------------------------------------- /laradock/mysql/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG MYSQL_VERSION 2 | FROM mysql:${MYSQL_VERSION} 3 | 4 | LABEL maintainer="Mahmoud Zalt " 5 | 6 | ##################################### 7 | # Set Timezone 8 | ##################################### 9 | 10 | ARG TZ=UTC 11 | ENV TZ ${TZ} 12 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/ 13 | 14 | COPY my.cnf /etc/mysql/conf.d/my.cnf 15 | 16 | RUN chmod 0444 /etc/mysql/conf.d/my.cnf 17 | 18 | CMD ["mysqld"] 19 | 20 | EXPOSE 3306 21 | -------------------------------------------------------------------------------- /laradock/mysql/docker-entrypoint-initdb.d/.gitignore: -------------------------------------------------------------------------------- 1 | *.sql 2 | -------------------------------------------------------------------------------- /laradock/mysql/docker-entrypoint-initdb.d/createdb.sql.example: -------------------------------------------------------------------------------- 1 | # 2 | # Copy createdb.sql.example to createdb.sql 3 | # then uncomment then set database name and username to create you need databases 4 | # 5 | # example: .env MYSQL_USER=appuser and needed db name is myshop_db 6 | # 7 | # CREATE DATABASE IF NOT EXISTS `myshop_db` ; 8 | # GRANT ALL ON `myshop_db`.* TO 'appuser'@'%' ; 9 | # 10 | # 11 | # this sql script will auto run when the mysql container starts and the $DATA_PATH_HOST/mysql not found. 12 | # 13 | # if your $DATA_PATH_HOST/mysql exists and you do not want to delete it, you can run by manual execution: 14 | # 15 | # docker-compose exec mysql bash 16 | # mysql -u root -p < /docker-entrypoint-initdb.d/createdb.sql 17 | # 18 | 19 | #CREATE DATABASE IF NOT EXISTS `dev_db_1` COLLATE 'utf8_general_ci' ; 20 | #GRANT ALL ON `dev_db_1`.* TO 'default'@'%' ; 21 | 22 | #CREATE DATABASE IF NOT EXISTS `dev_db_2` COLLATE 'utf8_general_ci' ; 23 | #GRANT ALL ON `dev_db_2`.* TO 'default'@'%' ; 24 | 25 | #CREATE DATABASE IF NOT EXISTS `dev_db_3` COLLATE 'utf8_general_ci' ; 26 | #GRANT ALL ON `dev_db_3`.* TO 'default'@'%' ; 27 | 28 | FLUSH PRIVILEGES ; 29 | -------------------------------------------------------------------------------- /laradock/mysql/my.cnf: -------------------------------------------------------------------------------- 1 | # The MySQL Client configuration file. 2 | # 3 | # For explanations see 4 | # http://dev.mysql.com/doc/mysql/en/server-system-variables.html 5 | 6 | [mysql] 7 | 8 | [mysqld] 9 | sql-mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" 10 | character-set-server=utf8 11 | default-authentication-plugin=mysql_native_password 12 | -------------------------------------------------------------------------------- /laradock/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:alpine 2 | 3 | LABEL maintainer="Mahmoud Zalt " 4 | 5 | COPY nginx.conf /etc/nginx/ 6 | 7 | # If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env. 8 | 9 | ARG CHANGE_SOURCE=false 10 | RUN if [ ${CHANGE_SOURCE} = true ]; then \ 11 | # Change application source from dl-cdn.alpinelinux.org to aliyun source 12 | sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \ 13 | ;fi 14 | 15 | RUN apk update \ 16 | && apk upgrade \ 17 | && apk --update add logrotate \ 18 | && apk add --no-cache openssl \ 19 | && apk add --no-cache bash 20 | 21 | RUN apk add --no-cache curl 22 | 23 | RUN set -x ; \ 24 | addgroup -g 82 -S www-data ; \ 25 | adduser -u 82 -D -S -G www-data www-data && exit 0 ; exit 1 26 | 27 | ARG PHP_UPSTREAM_CONTAINER=php-fpm 28 | ARG PHP_UPSTREAM_PORT=9000 29 | 30 | # Create 'messages' file used from 'logrotate' 31 | RUN touch /var/log/messages 32 | 33 | # Copy 'logrotate' config file 34 | COPY logrotate/nginx /etc/logrotate.d/ 35 | 36 | # Set upstream conf and remove the default conf 37 | RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf \ 38 | && rm /etc/nginx/conf.d/default.conf 39 | 40 | ADD ./startup.sh /opt/startup.sh 41 | RUN sed -i 's/\r//g' /opt/startup.sh 42 | CMD ["/bin/bash", "/opt/startup.sh"] 43 | 44 | EXPOSE 80 81 443 45 | -------------------------------------------------------------------------------- /laradock/nginx/logrotate/nginx: -------------------------------------------------------------------------------- 1 | /var/log/nginx/*.log { 2 | daily 3 | missingok 4 | rotate 32 5 | compress 6 | delaycompress 7 | nodateext 8 | notifempty 9 | create 644 www-data root 10 | sharedscripts 11 | postrotate 12 | [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` 13 | endscript 14 | } 15 | -------------------------------------------------------------------------------- /laradock/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | user www-data; 2 | worker_processes 4; 3 | pid /run/nginx.pid; 4 | daemon off; 5 | 6 | events { 7 | worker_connections 2048; 8 | multi_accept on; 9 | use epoll; 10 | } 11 | 12 | http { 13 | server_tokens off; 14 | sendfile on; 15 | tcp_nopush on; 16 | tcp_nodelay on; 17 | keepalive_timeout 15; 18 | types_hash_max_size 2048; 19 | client_max_body_size 20M; 20 | include /etc/nginx/mime.types; 21 | default_type application/octet-stream; 22 | access_log /dev/stdout; 23 | error_log /dev/stderr; 24 | gzip on; 25 | gzip_disable "msie6"; 26 | 27 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 28 | ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS'; 29 | 30 | include /etc/nginx/conf.d/*.conf; 31 | include /etc/nginx/sites-available/*.conf; 32 | open_file_cache off; # Disabled for issue 619 33 | charset UTF-8; 34 | } 35 | -------------------------------------------------------------------------------- /laradock/nginx/sites/.gitignore: -------------------------------------------------------------------------------- 1 | *.conf 2 | !default.conf -------------------------------------------------------------------------------- /laradock/nginx/sites/app.conf.example: -------------------------------------------------------------------------------- 1 | server { 2 | 3 | listen 80; 4 | listen [::]:80; 5 | 6 | # For https 7 | # listen 443 ssl; 8 | # listen [::]:443 ssl ipv6only=on; 9 | # ssl_certificate /etc/nginx/ssl/default.crt; 10 | # ssl_certificate_key /etc/nginx/ssl/default.key; 11 | 12 | server_name app.test; 13 | root /var/www/app; 14 | index index.php index.html index.htm; 15 | 16 | location / { 17 | try_files $uri $uri/ /index.php$is_args$args; 18 | } 19 | 20 | location ~ \.php$ { 21 | try_files $uri /index.php =404; 22 | fastcgi_pass php-upstream; 23 | fastcgi_index index.php; 24 | fastcgi_buffers 16 16k; 25 | fastcgi_buffer_size 32k; 26 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 27 | #fixes timeouts 28 | fastcgi_read_timeout 600; 29 | include fastcgi_params; 30 | } 31 | 32 | location ~ /\.ht { 33 | deny all; 34 | } 35 | 36 | location /.well-known/acme-challenge/ { 37 | root /var/www/letsencrypt/; 38 | log_not_found off; 39 | } 40 | 41 | error_log /var/log/nginx/app_error.log; 42 | access_log /var/log/nginx/app_access.log; 43 | } 44 | -------------------------------------------------------------------------------- /laradock/nginx/sites/confluence.conf.example: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen [::]:80; 4 | server_name www.confluence-domain.com; 5 | rewrite ^(.*) https://confluence-domain.com$1/ permanent; 6 | } 7 | 8 | server { 9 | listen 80; 10 | listen [::]:80; 11 | server_name confluence-domain.com; 12 | rewrite ^(.*) https://confluence-domain.com/ permanent; 13 | } 14 | 15 | server { 16 | listen 443 ssl; 17 | listen [::]:443 ssl; 18 | ssl_certificate /etc/nginx/ssl/confluence-domain.com.crt; 19 | ssl_certificate_key /etc/nginx/ssl/confluence-domain.com.key; 20 | 21 | server_name confluence-domain.com; 22 | 23 | location / { 24 | client_max_body_size 100m; 25 | proxy_set_header X-Forwarded-Host $host; 26 | proxy_set_header X-Forwarded-Server $host; 27 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 28 | proxy_pass http://confluence-domain.com:8090/; 29 | } 30 | 31 | location /synchrony { 32 | proxy_set_header X-Forwarded-Host $host; 33 | proxy_set_header X-Forwarded-Server $host; 34 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 35 | proxy_pass http://confluence-domain.com:8090/synchrony-proxy; 36 | proxy_http_version 1.1; 37 | proxy_set_header Upgrade $http_upgrade; 38 | proxy_set_header Connection "Upgrade"; 39 | } 40 | 41 | error_log /var/log/nginx/bookchangerru_error.log; 42 | access_log /var/log/nginx/bookchangerru_access.log; 43 | } 44 | -------------------------------------------------------------------------------- /laradock/nginx/sites/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | 3 | listen 80 default_server; 4 | listen [::]:80 default_server ipv6only=on; 5 | 6 | # For https 7 | # listen 443 ssl default_server; 8 | # listen [::]:443 ssl default_server ipv6only=on; 9 | # ssl_certificate /etc/nginx/ssl/default.crt; 10 | # ssl_certificate_key /etc/nginx/ssl/default.key; 11 | 12 | server_name localhost; 13 | root /var/www/public; 14 | index index.php index.html index.htm; 15 | 16 | location / { 17 | try_files $uri $uri/ /index.php$is_args$args; 18 | } 19 | 20 | location ~ \.php$ { 21 | try_files $uri /index.php =404; 22 | fastcgi_pass php-upstream; 23 | fastcgi_index index.php; 24 | fastcgi_buffers 16 16k; 25 | fastcgi_buffer_size 32k; 26 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 27 | #fixes timeouts 28 | fastcgi_read_timeout 600; 29 | include fastcgi_params; 30 | } 31 | 32 | location ~ /\.ht { 33 | deny all; 34 | } 35 | 36 | location /.well-known/acme-challenge/ { 37 | root /var/www/letsencrypt/; 38 | log_not_found off; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /laradock/nginx/sites/laravel.conf.example: -------------------------------------------------------------------------------- 1 | server { 2 | 3 | listen 80; 4 | listen [::]:80; 5 | 6 | # For https 7 | # listen 443 ssl; 8 | # listen [::]:443 ssl ipv6only=on; 9 | # ssl_certificate /etc/nginx/ssl/default.crt; 10 | # ssl_certificate_key /etc/nginx/ssl/default.key; 11 | 12 | server_name laravel.test; 13 | root /var/www/laravel/public; 14 | index index.php index.html index.htm; 15 | 16 | location / { 17 | try_files $uri $uri/ /index.php$is_args$args; 18 | } 19 | 20 | location ~ \.php$ { 21 | try_files $uri /index.php =404; 22 | fastcgi_pass php-upstream; 23 | fastcgi_index index.php; 24 | fastcgi_buffers 16 16k; 25 | fastcgi_buffer_size 32k; 26 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 27 | #fixes timeouts 28 | fastcgi_read_timeout 600; 29 | include fastcgi_params; 30 | } 31 | 32 | location ~ /\.ht { 33 | deny all; 34 | } 35 | 36 | location /.well-known/acme-challenge/ { 37 | root /var/www/letsencrypt/; 38 | log_not_found off; 39 | } 40 | 41 | error_log /var/log/nginx/laravel_error.log; 42 | access_log /var/log/nginx/laravel_access.log; 43 | } 44 | -------------------------------------------------------------------------------- /laradock/nginx/sites/laravel_varnish.conf.example: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen [::]:80; 4 | server_name www.laravel.test; 5 | rewrite ^(.*) https://laravel.test$1/ permanent; 6 | } 7 | 8 | server { 9 | listen 80; 10 | listen [::]:80; 11 | server_name laravel.test; 12 | rewrite ^(.*) https://laravel.test$1/ permanent; 13 | } 14 | 15 | server { 16 | listen 443 ssl ; 17 | listen [::]:443 ssl; 18 | ssl_certificate /etc/nginx/ssl/laravel.test.crt; 19 | ssl_certificate_key /etc/nginx/ssl/laravel.test.key; 20 | server_name www.laravel.test; 21 | rewrite ^(.*) https://laravel.test$1/ permanent; 22 | } 23 | 24 | server { 25 | server_name laravel.test; 26 | 27 | # For https 28 | listen 443 ssl ; 29 | listen [::]:443 ssl; 30 | ssl_certificate /etc/nginx/ssl/laravel.test.crt; 31 | ssl_certificate_key /etc/nginx/ssl/laravel.test.key; 32 | 33 | port_in_redirect off; 34 | 35 | add_header Strict-Transport-Security "max-age=31536000"; 36 | add_header X-Content-Type-Options nosniff; 37 | 38 | location / { 39 | proxy_pass http://proxy:6081; 40 | proxy_set_header Host $http_host; 41 | proxy_set_header X-Forwarded-Host $http_host; 42 | proxy_set_header X-Real-IP $remote_addr; 43 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 44 | proxy_set_header X-Forwarded-Proto https; 45 | proxy_set_header HTTPS "on"; 46 | proxy_redirect off; 47 | } 48 | } 49 | 50 | server { 51 | server_name laravel.test; 52 | 53 | listen 81; 54 | listen [::]:81; 55 | 56 | root /var/www/laravel.test/www; 57 | 58 | index index.php index.html index.htm; 59 | 60 | location / { 61 | try_files $uri $uri/ /index.php$is_args$args; 62 | } 63 | 64 | location ~ \.php$ { 65 | fastcgi_max_temp_file_size 4m; 66 | fastcgi_pass php-upstream; 67 | 68 | # Additional configs 69 | fastcgi_pass_header Set-Cookie; 70 | fastcgi_pass_header Cookie; 71 | fastcgi_ignore_headers Cache-Control Expires Set-Cookie; 72 | try_files $uri /index.php =404; 73 | fastcgi_index index.php; 74 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 75 | fastcgi_split_path_info ^(.+\.php)(/.+)$; 76 | fastcgi_param PATH_INFO $fastcgi_path_info; 77 | fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; 78 | fastcgi_param HTTPS on; 79 | 80 | fastcgi_buffers 16 16k; 81 | fastcgi_buffer_size 32k; 82 | 83 | fastcgi_intercept_errors on; 84 | 85 | #fixes timeouts 86 | fastcgi_read_timeout 600; 87 | include fastcgi_params; 88 | } 89 | 90 | # Caching 91 | location ~* \.(ico|jpg|webp|jpeg|gif|css|png|js|ico|bmp|zip|woff)$ { 92 | access_log off; 93 | log_not_found off; 94 | add_header Pragma public; 95 | add_header Cache-Control "public"; 96 | expires 14d; 97 | } 98 | 99 | location ~* \.(php|html)$ { 100 | access_log on; 101 | log_not_found on; 102 | add_header Pragma public; 103 | add_header Cache-Control "public"; 104 | expires 14d; 105 | } 106 | 107 | location ~ /\.ht { 108 | deny all; 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /laradock/nginx/sites/symfony.conf.example: -------------------------------------------------------------------------------- 1 | server { 2 | 3 | listen 80; 4 | listen [::]:80; 5 | 6 | # For https 7 | # listen 443 ssl; 8 | # listen [::]:443 ssl ipv6only=on; 9 | # ssl_certificate /etc/nginx/ssl/default.crt; 10 | # ssl_certificate_key /etc/nginx/ssl/default.key; 11 | 12 | server_name symfony.test; 13 | root /var/www/projects/symfony/web; 14 | index index.php index.html index.htm; 15 | 16 | location / { 17 | try_files $uri @rewriteapp; 18 | } 19 | 20 | # For Symfony 3 21 | location @rewriteapp { 22 | rewrite ^(.*)$ /app.php/$1 last; 23 | } 24 | 25 | # For Symfony 4 config 26 | # location @rewriteapp { 27 | # rewrite ^(.*)$ /index.php/$1 last; 28 | # } 29 | 30 | location ~ ^/(app|app_dev|config|index)\.php(/|$) { 31 | fastcgi_pass php-upstream; 32 | fastcgi_split_path_info ^(.+\.php)(/.*)$; 33 | include fastcgi_params; 34 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 35 | #fixes timeouts 36 | fastcgi_read_timeout 600; 37 | fastcgi_param HTTPS off; 38 | } 39 | 40 | error_log /var/log/nginx/symfony_error.log; 41 | access_log /var/log/nginx/symfony_access.log; 42 | } 43 | -------------------------------------------------------------------------------- /laradock/nginx/ssl/.gitignore: -------------------------------------------------------------------------------- 1 | *.crt 2 | *.csr 3 | *.key 4 | *.pem -------------------------------------------------------------------------------- /laradock/nginx/startup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ ! -f /etc/nginx/ssl/default.crt ]; then 4 | openssl genrsa -out "/etc/nginx/ssl/default.key" 2048 5 | openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=default/O=default/C=UK" 6 | openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt" 7 | fi 8 | 9 | # Start crond in background 10 | crond -l 2 -b 11 | 12 | # Start nginx in foreground 13 | nginx 14 | -------------------------------------------------------------------------------- /laradock/php-fpm/aerospike.ini: -------------------------------------------------------------------------------- 1 | extension=aerospike.so 2 | aerospike.udf.lua_system_path=/usr/local/aerospike/lua 3 | aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua -------------------------------------------------------------------------------- /laradock/php-fpm/laravel.ini: -------------------------------------------------------------------------------- 1 | date.timezone=UTC 2 | display_errors=Off 3 | log_errors=On 4 | 5 | ; Maximum amount of memory a script may consume (128MB) 6 | ; http://php.net/memory-limit 7 | memory_limit = 256M 8 | ; Maximum allowed size for uploaded files. 9 | ; http://php.net/upload-max-filesize 10 | upload_max_filesize = 20M 11 | ; Sets max size of post data allowed. 12 | ; http://php.net/post-max-size 13 | post_max_size = 20M 14 | max_execution_time=600 15 | default_socket_timeout=3600 16 | request_terminate_timeout=600 17 | -------------------------------------------------------------------------------- /laradock/php-fpm/mysql.ini: -------------------------------------------------------------------------------- 1 | [MySQL] 2 | ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements 3 | ; http://php.net/mysql.allow_local_infile 4 | mysql.allow_local_infile = On 5 | 6 | ; Allow or prevent persistent links. 7 | ; http://php.net/mysql.allow-persistent 8 | mysql.allow_persistent = On 9 | 10 | ; If mysqlnd is used: Number of cache slots for the internal result set cache 11 | ; http://php.net/mysql.cache_size 12 | mysql.cache_size = 2000 13 | 14 | ; Maximum number of persistent links. -1 means no limit. 15 | ; http://php.net/mysql.max-persistent 16 | mysql.max_persistent = -1 17 | 18 | ; Maximum number of links (persistent + non-persistent). -1 means no limit. 19 | ; http://php.net/mysql.max-links 20 | mysql.max_links = -1 21 | 22 | ; Default port number for mysql_connect(). If unset, mysql_connect() will use 23 | ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the 24 | ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look 25 | ; at MYSQL_PORT. 26 | ; http://php.net/mysql.default-port 27 | mysql.default_port = 28 | 29 | ; Default socket name for local MySQL connects. If empty, uses the built-in 30 | ; MySQL defaults. 31 | ; http://php.net/mysql.default-socket 32 | mysql.default_socket = 33 | 34 | ; Default host for mysql_connect() (doesn't apply in safe mode). 35 | ; http://php.net/mysql.default-host 36 | mysql.default_host = 37 | 38 | ; Default user for mysql_connect() (doesn't apply in safe mode). 39 | ; http://php.net/mysql.default-user 40 | mysql.default_user = 41 | 42 | ; Default password for mysql_connect() (doesn't apply in safe mode). 43 | ; Note that this is generally a *bad* idea to store passwords in this file. 44 | ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password") 45 | ; and reveal this password! And of course, any users with read access to this 46 | ; file will be able to reveal the password as well. 47 | ; http://php.net/mysql.default-password 48 | mysql.default_password = 49 | 50 | ; Maximum time (in seconds) for connect timeout. -1 means no limit 51 | ; http://php.net/mysql.connect-timeout 52 | mysql.connect_timeout = 60 53 | 54 | ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and 55 | ; SQL-Errors will be displayed. 56 | ; http://php.net/mysql.trace-mode 57 | mysql.trace_mode = Off 58 | 59 | -------------------------------------------------------------------------------- /laradock/php-fpm/opcache.ini: -------------------------------------------------------------------------------- 1 | ; NOTE: The actual opcache.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini) 2 | 3 | opcache.enable=1 4 | opcache.memory_consumption=256 5 | opcache.use_cwd=0 6 | opcache.max_file_size=0 7 | opcache.max_accelerated_files=30000 8 | opcache.validate_timestamps=1 9 | opcache.revalidate_freq=0 10 | -------------------------------------------------------------------------------- /laradock/php-fpm/phalcon.ini: -------------------------------------------------------------------------------- 1 | extension=psr.so 2 | extension=phalcon.so -------------------------------------------------------------------------------- /laradock/php-fpm/xdebug: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | # NOTE: At the moment, this has only been confirmed to work with PHP 7 4 | 5 | 6 | # Grab full name of php-fpm container 7 | PHP_FPM_CONTAINER=$(docker ps | grep php-fpm | awk '{print $1}') 8 | 9 | 10 | # Grab OS type 11 | if [[ "$(uname)" == "Darwin" ]]; then 12 | OS_TYPE="OSX" 13 | else 14 | OS_TYPE=$(expr substr $(uname -s) 1 5) 15 | fi 16 | 17 | 18 | xdebug_status () 19 | { 20 | echo 'xDebug status' 21 | 22 | # If running on Windows, need to prepend with winpty :( 23 | if [[ $OS_TYPE == "MINGW" ]]; then 24 | winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' 25 | 26 | else 27 | docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' 28 | fi 29 | 30 | } 31 | 32 | 33 | xdebug_start () 34 | { 35 | echo 'Start xDebug' 36 | 37 | # And uncomment line with xdebug extension, thus enabling it 38 | ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' \ 39 | /usr/local/etc/php/conf.d/xdebug.ini" 40 | 41 | 42 | # If running on Windows, need to prepend with winpty :( 43 | if [[ $OS_TYPE == "MINGW" ]]; then 44 | winpty docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}" 45 | docker restart $PHP_FPM_CONTAINER 46 | winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' 47 | 48 | else 49 | docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}" 50 | docker restart $PHP_FPM_CONTAINER 51 | docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' 52 | fi 53 | } 54 | 55 | 56 | xdebug_stop () 57 | { 58 | echo 'Stop xDebug' 59 | 60 | # Comment out xdebug extension line 61 | OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/xdebug.ini" 62 | 63 | 64 | # If running on Windows, need to prepend with winpty :( 65 | if [[ $OS_TYPE == "MINGW" ]]; then 66 | # This is the equivalent of: 67 | # winpty docker exec -it laradock_php-fpm_1 bash -c 'bla bla bla' 68 | # Thanks to @michaelarnauts at https://github.com/docker/compose/issues/593 69 | winpty docker exec -it $PHP_FPM_CONTAINER bash -c "${OFF_CMD}" 70 | docker restart $PHP_FPM_CONTAINER 71 | #docker-compose restart php-fpm 72 | winpty docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' 73 | 74 | else 75 | docker exec -it $PHP_FPM_CONTAINER bash -c "${OFF_CMD}" 76 | # docker-compose restart php-fpm 77 | docker restart $PHP_FPM_CONTAINER 78 | docker exec -it $PHP_FPM_CONTAINER bash -c 'php -v' 79 | fi 80 | } 81 | 82 | 83 | case $@ in 84 | stop|STOP) 85 | xdebug_stop 86 | ;; 87 | start|START) 88 | xdebug_start 89 | ;; 90 | status|STATUS) 91 | xdebug_status 92 | ;; 93 | *) 94 | echo "xDebug [Stop | Start | Status] in the ${PHP_FPM_CONTAINER} container." 95 | echo "xDebug must have already been installed." 96 | echo "Usage:" 97 | echo " .php-fpm/xdebug stop|start|status" 98 | 99 | esac 100 | 101 | exit 1 102 | -------------------------------------------------------------------------------- /laradock/php-fpm/xdebug.ini: -------------------------------------------------------------------------------- 1 | ; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) 2 | 3 | xdebug.remote_host="host.docker.internal" 4 | xdebug.remote_connect_back=0 5 | xdebug.remote_port=9000 6 | xdebug.idekey=PHPSTORM 7 | 8 | xdebug.remote_autostart=0 9 | xdebug.remote_enable=0 10 | xdebug.cli_color=0 11 | xdebug.profiler_enable=0 12 | xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling" 13 | 14 | xdebug.remote_handler=dbgp 15 | xdebug.remote_mode=req 16 | 17 | xdebug.var_display_max_children=-1 18 | xdebug.var_display_max_data=-1 19 | xdebug.var_display_max_depth=-1 20 | -------------------------------------------------------------------------------- /laradock/php-fpm/xhprof.ini: -------------------------------------------------------------------------------- 1 | [xhprof] 2 | ; extension=xhprof.so 3 | extension=tideways_xhprof.so 4 | xhprof.output_dir=/var/www/xhprof 5 | ; no need to autoload, control in the program 6 | tideways.auto_prepend_library=0 7 | ; set default rate 8 | tideways.sample_rate=100 -------------------------------------------------------------------------------- /laradock/php-fpm/xlaravel.pool.conf: -------------------------------------------------------------------------------- 1 | ; Unix user/group of processes 2 | ; Note: The user is mandatory. If the group is not set, the default user's group 3 | ; will be used. 4 | user = www-data 5 | group = www-data 6 | 7 | ; The address on which to accept FastCGI requests. 8 | ; Valid syntaxes are: 9 | ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on 10 | ; a specific port; 11 | ; 'port' - to listen on a TCP socket to all addresses on a 12 | ; specific port; 13 | ; '/path/to/unix/socket' - to listen on a unix socket. 14 | ; Note: This value is mandatory. 15 | listen = 0.0.0.0:9000 16 | 17 | ; Choose how the process manager will control the number of child processes. 18 | ; Possible Values: 19 | ; static - a fixed number (pm.max_children) of child processes; 20 | ; dynamic - the number of child processes are set dynamically based on the 21 | ; following directives. With this process management, there will be 22 | ; always at least 1 children. 23 | ; pm.max_children - the maximum number of children that can 24 | ; be alive at the same time. 25 | ; pm.start_servers - the number of children created on startup. 26 | ; pm.min_spare_servers - the minimum number of children in 'idle' 27 | ; state (waiting to process). If the number 28 | ; of 'idle' processes is less than this 29 | ; number then some children will be created. 30 | ; pm.max_spare_servers - the maximum number of children in 'idle' 31 | ; state (waiting to process). If the number 32 | ; of 'idle' processes is greater than this 33 | ; number then some children will be killed. 34 | ; ondemand - no children are created at startup. Children will be forked when 35 | ; new requests will connect. The following parameter are used: 36 | ; pm.max_children - the maximum number of children that 37 | ; can be alive at the same time. 38 | ; pm.process_idle_timeout - The number of seconds after which 39 | ; an idle process will be killed. 40 | ; Note: This value is mandatory. 41 | pm = dynamic 42 | 43 | ; The number of child processes to be created when pm is set to 'static' and the 44 | ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. 45 | ; This value sets the limit on the number of simultaneous requests that will be 46 | ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. 47 | ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP 48 | ; CGI. The below defaults are based on a server without much resources. Don't 49 | ; forget to tweak pm.* to fit your needs. 50 | ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' 51 | ; Note: This value is mandatory. 52 | pm.max_children = 20 53 | 54 | ; The number of child processes created on startup. 55 | ; Note: Used only when pm is set to 'dynamic' 56 | ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 57 | pm.start_servers = 2 58 | 59 | ; The desired minimum number of idle server processes. 60 | ; Note: Used only when pm is set to 'dynamic' 61 | ; Note: Mandatory when pm is set to 'dynamic' 62 | pm.min_spare_servers = 1 63 | 64 | ; The desired maximum number of idle server processes. 65 | ; Note: Used only when pm is set to 'dynamic' 66 | ; Note: Mandatory when pm is set to 'dynamic' 67 | pm.max_spare_servers = 3 68 | 69 | ;--------------------- 70 | 71 | ; Make specific Docker environment variables available to PHP 72 | env[DB_1_ENV_MYSQL_DATABASE] = $DB_1_ENV_MYSQL_DATABASE 73 | env[DB_1_ENV_MYSQL_USER] = $DB_1_ENV_MYSQL_USER 74 | env[DB_1_ENV_MYSQL_PASSWORD] = $DB_1_ENV_MYSQL_PASSWORD 75 | 76 | catch_workers_output = yes 77 | -------------------------------------------------------------------------------- /laradock/phpmyadmin/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM phpmyadmin/phpmyadmin 2 | 3 | LABEL maintainer="Bo-Yi Wu " 4 | 5 | # Add volume for sessions to allow session persistence 6 | VOLUME /sessions 7 | 8 | RUN echo '' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \ 9 | && echo '[PHP]' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \ 10 | && echo 'post_max_size = 2G' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini \ 11 | && echo 'upload_max_filesize = 2G' >> /usr/local/etc/php/conf.d/php-phpmyadmin.ini 12 | 13 | # We expose phpMyAdmin on port 80 14 | EXPOSE 80 15 | -------------------------------------------------------------------------------- /laradock/portainer/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM portainer/portainer 2 | 3 | LABEL maintainer="luciano@lucianojr.com.br" 4 | -------------------------------------------------------------------------------- /laradock/sync.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This shell script is an optional tool to simplify 4 | # the installation and usage of laradock with docker-sync. 5 | 6 | # Make sure that the DOCKER_SYNC_STRATEGY is set in the .env 7 | # DOCKER_SYNC_STRATEGY=native_osx # osx 8 | # DOCKER_SYNC_STRATEGY=unison # windows 9 | 10 | # To run, make sure to add permissions to this file: 11 | # chmod 755 sync.sh 12 | 13 | # USAGE EXAMPLE: 14 | # Install docker-sync: ./sync.sh install 15 | # Start sync and services with nginx and mysql: ./sync.sh up nginx mysql 16 | # Stop containers and sync: ./sync.sh down 17 | 18 | # prints colored text 19 | print_style () { 20 | 21 | if [ "$2" == "info" ] ; then 22 | COLOR="96m" 23 | elif [ "$2" == "success" ] ; then 24 | COLOR="92m" 25 | elif [ "$2" == "warning" ] ; then 26 | COLOR="93m" 27 | elif [ "$2" == "danger" ] ; then 28 | COLOR="91m" 29 | else #default color 30 | COLOR="0m" 31 | fi 32 | 33 | STARTCOLOR="\e[$COLOR" 34 | ENDCOLOR="\e[0m" 35 | 36 | printf "$STARTCOLOR%b$ENDCOLOR" "$1" 37 | } 38 | 39 | display_options () { 40 | printf "Available options:\n"; 41 | print_style " install" "info"; printf "\t\t Installs docker-sync gem on the host machine.\n" 42 | print_style " up [services]" "success"; printf "\t Starts docker-sync and runs docker compose.\n" 43 | print_style " down" "success"; printf "\t\t\t Stops containers and docker-sync.\n" 44 | print_style " bash" "success"; printf "\t\t\t Opens bash on the workspace with user laradock.\n" 45 | print_style " sync" "info"; printf "\t\t\t Manually triggers the synchronization of files.\n" 46 | print_style " clean" "danger"; printf "\t\t Removes all files from docker-sync.\n" 47 | } 48 | 49 | if [[ $# -eq 0 ]] ; then 50 | print_style "Missing arguments.\n" "danger" 51 | display_options 52 | exit 1 53 | fi 54 | 55 | if [ "$1" == "up" ] ; then 56 | print_style "Initializing Docker Sync\n" "info" 57 | print_style "May take a long time (15min+) on the first run\n" "info" 58 | docker-sync start; 59 | 60 | print_style "Initializing Docker Compose\n" "info" 61 | shift # removing first argument 62 | docker-compose up -d ${@} 63 | 64 | elif [ "$1" == "down" ]; then 65 | print_style "Stopping Docker Compose\n" "info" 66 | docker-compose stop 67 | 68 | print_style "Stopping Docker Sync\n" "info" 69 | docker-sync stop 70 | 71 | elif [ "$1" == "bash" ]; then 72 | docker-compose exec --user=laradock workspace bash 73 | 74 | elif [ "$1" == "install" ]; then 75 | print_style "Installing docker-sync\n" "info" 76 | gem install docker-sync 77 | 78 | elif [ "$1" == "sync" ]; then 79 | print_style "Manually triggering sync between host and docker-sync container.\n" "info" 80 | docker-sync sync; 81 | 82 | elif [ "$1" == "clean" ]; then 83 | print_style "Removing and cleaning up files from the docker-sync container.\n" "warning" 84 | docker-sync clean 85 | else 86 | print_style "Invalid arguments.\n" "danger" 87 | display_options 88 | exit 1 89 | fi 90 | -------------------------------------------------------------------------------- /laradock/travis-build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | #### halt script on error 4 | set -xe 5 | 6 | echo '##### Print docker version' 7 | docker --version 8 | 9 | echo '##### Print environment' 10 | env | sort 11 | 12 | #### Build the Docker Images 13 | if [ -n "${PHP_VERSION}" ]; then 14 | cp env-example .env 15 | sed -i -- "s/PHP_VERSION=.*/PHP_VERSION=${PHP_VERSION}/g" .env 16 | sed -i -- 's/=false/=true/g' .env 17 | sed -i -- 's/PHPDBG=true/PHPDBG=false/g' .env 18 | if [ "${PHP_VERSION}" == "5.6" ]; then 19 | # Aerospike C Client SDK 4.0.7, Debian 9.6 is not supported 20 | # https://github.com/aerospike/aerospike-client-php5/issues/145 21 | sed -i -- 's/PHP_FPM_INSTALL_AEROSPIKE=true/PHP_FPM_INSTALL_AEROSPIKE=false/g' .env 22 | fi 23 | if [ "${PHP_VERSION}" == "7.3" ]; then 24 | # V8JS extension does not yet support PHP 7.3. 25 | sed -i -- 's/WORKSPACE_INSTALL_V8JS=true/WORKSPACE_INSTALL_V8JS=false/g' .env 26 | # This ssh2 extension does not yet support PHP 7.3. 27 | sed -i -- 's/PHP_FPM_INSTALL_SSH2=true/PHP_FPM_INSTALL_SSH2=false/g' .env 28 | # xdebug extension does not yet support PHP 7.3. 29 | sed -i -- 's/PHP_FPM_INSTALL_XDEBUG=true/PHP_FPM_INSTALL_XDEBUG=false/g' .env 30 | # memcached extension does not yet support PHP 7.3. 31 | sed -i -- 's/PHP_FPM_INSTALL_MEMCACHED=true/PHP_FPM_INSTALL_MEMCACHED=false/g' .env 32 | fi 33 | 34 | sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env 35 | 36 | cat .env 37 | docker-compose build ${BUILD_SERVICE} 38 | docker images 39 | fi 40 | 41 | #### Generate the Laradock Documentation site using Hugo 42 | if [ -n "${HUGO_VERSION}" ]; then 43 | HUGO_PACKAGE=hugo_${HUGO_VERSION}_Linux-64bit 44 | HUGO_BIN=hugo_${HUGO_VERSION}_linux_amd64 45 | 46 | # Download hugo binary 47 | curl -L https://github.com/spf13/hugo/releases/download/v$HUGO_VERSION/$HUGO_PACKAGE.tar.gz | tar xz 48 | mkdir -p $HOME/bin 49 | mv ./${HUGO_BIN}/${HUGO_BIN} $HOME/bin/hugo 50 | 51 | # Remove existing docs 52 | if [ -d "./docs" ]; then 53 | rm -r ./docs 54 | fi 55 | 56 | # Build docs 57 | cd DOCUMENTATION 58 | hugo 59 | fi 60 | -------------------------------------------------------------------------------- /laradock/workspace/aerospike.ini: -------------------------------------------------------------------------------- 1 | extension=aerospike.so 2 | aerospike.udf.lua_system_path=/usr/local/aerospike/lua 3 | aerospike.udf.lua_user_path=/usr/local/aerospike/usr-lua -------------------------------------------------------------------------------- /laradock/workspace/auth.json: -------------------------------------------------------------------------------- 1 | { 2 | "http-basic": { 3 | "repo.magento.com": { 4 | "username": "", 5 | "password": "" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /laradock/workspace/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /laradock/workspace/crontab/laradock: -------------------------------------------------------------------------------- 1 | * * * * * laradock /usr/bin/php /var/www/artisan schedule:run >> /dev/null 2>&1 2 | -------------------------------------------------------------------------------- /laradock/workspace/git-prompt.sh: -------------------------------------------------------------------------------- 1 | # Settings info at https://github.com/magicmonty/bash-git-prompt 2 | if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then 3 | # Set config variables first 4 | GIT_PROMPT_ONLY_IN_REPO=1 5 | GIT_PROMPT_FETCH_REMOTE_STATUS=0 # uncomment to avoid fetching remote status 6 | GIT_PROMPT_IGNORE_SUBMODULES=1 # uncomment to avoid searching for changed files in submodules 7 | # GIT_PROMPT_WITH_VIRTUAL_ENV=0 # uncomment to avoid setting virtual environment infos for node/python/conda environments 8 | 9 | # GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch 10 | # GIT_PROMPT_SHOW_UNTRACKED_FILES=normal # can be no, normal or all; determines counting of untracked files 11 | 12 | # GIT_PROMPT_SHOW_CHANGED_FILES_COUNT=0 # uncomment to avoid printing the number of changed files 13 | 14 | # GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10 15 | 16 | # GIT_PROMPT_START=... # uncomment for custom prompt start sequence 17 | # GIT_PROMPT_END=... # uncomment for custom prompt end sequence 18 | 19 | # as last entry source the gitprompt script 20 | # GIT_PROMPT_THEME=Custom # use custom theme specified in file GIT_PROMPT_THEME_FILE (default ~/.git-prompt-colors.sh) 21 | # GIT_PROMPT_THEME_FILE=~/.git-prompt-colors.sh 22 | # GIT_PROMPT_THEME=Solarized # use theme optimized for solarized color scheme 23 | source $HOME/.bash-git-prompt/gitprompt.sh 24 | fi 25 | -------------------------------------------------------------------------------- /laradock/workspace/insecure_id_rsa: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIJKQIBAAKCAgEA9LX0DVV8VY0k+d58v+Tqe6LfhniBhBgBJ6/ZIGAFyuhqpyf9 3 | 1Dn1ihcZeIBLrC4+IaRq0/xiVcdpyBu3fyGkYnyb57Pi2pOFo/te88j0ReeP5onO 4 | mtDAERCR+Wkzi7kivg4Z4U1KgLeJn3R6WJgV1nUwFwwoPID+UC3RpHcS/TPhgZOL 5 | Sog8dYUXx1fbmOnItJbKUK4Zz883li5LUwPLlmGZbrNYL90l1+s1Q9vlwevye2Wq 6 | zXCvYh6DC3XRYIEnZxrOpDSyUHtAwMJ3HXgkIs3HV1dgPTt972mP29ANaG1MbqAo 7 | retvQMMkPQv+9X96wUq34FEm9aTlT5oS0SQ2Xp3/zUvBSFtfeP7ubJb69bun4/4o 8 | gmHLbdDzYNNFAJ5cm1gwyg95eXvCm5derk8Nf+QBHOlpd2gprVmKcERnrnv4Z1Mz 9 | l6/f0o4UC3wfmQgErfNzfrtJFe54uxuf9OM9dXamcJJOsdUgM1hiZ6e+qYsHeAD9 10 | n7vCqjQJlrMhCGZpkeSUhkuYuLBrkhqIOq2VqKdS8CHzY3TixW7Pq5xdKDpqYGUX 11 | qPHx/j5jpKt4h2j0L1ztwo9nedh1cbRyPp9oiow7twsxyD99b36rGSh35qKN3JBV 12 | uMn6z3F8tIELMD49IyVCGyi2+jn7qbVLEOUr5IsFqFuIq5zt5ShfSi6N7e8CAwEA 13 | AQKCAgA1t2M1Mhiy5uLA/re/n85hCWWrrPQxPNu0DIPK+YkL+2y9+KddWMOvZlau 14 | /uqdhyEYXXEdy38CeV2dEYh8HbRp8hR/Dhu0A0IItvsm5GvKlIQgBQwXK8+db1e7 15 | uf4Yo7EeqxW/QSojiyZonDbnD6trghnmVULX1TD+BLDKO2Ett5++w9aFq9YpreeE 16 | WKLZtCfcjGUoxK7h0QjQrKTYOjMMdawqgq/PAep2tSjiFnke0l5N/Ak8Q4ocLbpy 17 | X5BwcKlnlpjZrr+drxCNv6JKE79K7ITfhUyY5GBGl5N+mvL2g1eNyRZk5xNq0es4 18 | g1OaLDuUBoTKdsXokiPMD3Ql+J7+RCoC9PuGutdCAIU2u9CoFAfKJpsKh+sGRyri 19 | zvD5hlS31F78zif7W5ubi9supA6etJYbK+mwcDsJgmtc+q51xsH3T1ODvRcbtzvY 20 | FE8JzuchN4aPtsY+W/waTDVDdymFvPSsYjX7Blq3fnpg2uJKtzWEIQE+rY7gC3rN 21 | oNSE4YFbIAjTM4kIuIFnkVq3o2BmQ7WHjb3USelhFxBPJ67nBMLS3ShXLjyiu22U 22 | 8RxKcbOKpEimuCKRSVEdpsNnps3h2y8c2PPWWS7LGzAiCepLjXwqHLe4L/cvx8S9 23 | KZRXQneakkKToguV7N9p0O9prjJckb4jo941iaDepVZIHbuP8QKCAQEA+vABCKnn 24 | 8PA4RWixPcIybj6iQpHPzt6uZxv3il3IoY3Anm2+EHbloE9VcH3phQEAoTQsxd+k 25 | octHHqdJi6YxOTmmsHl3jilA3kKg0A7Rin702DObC3c9VSOe7V9rizPQnFewkyDP 26 | mpOoW3by0DYv0DFtA8zNfgSkFeqZEoBnQyMom9lBYcJ9VKriUfdCvPgh3ZV/SzEf 27 | cp6ZtMLRvtEWzOx75cww6kLvUuUekQl/7Ubr36Oz+71B66VN59udSLYPAb+stzhb 28 | QSU7LbNKaLlygBREqnTeXj+VCXGnrxORZS1FfqO9unbxg/FYBDBMt/2jXt6Elz62 29 | YgjDEtGjcTA/rQKCAQEA+aXKW6zufDG88DPsX5psl7Cu2Fwhq1j5ULGvpkuucaVs 30 | snONmFqi4jH7LEZVjEcHg6GhDqGytaaUr1KhXVWttn0om2qZIKFg7BR7E5PR9HKu 31 | Ig0do68pPf/5MKT6TKq1gB1l8B481dVc8tmaHjHbLz9UlIf8uLbXfP1EYyADAqJ4 32 | xtQNtOj7uz0k5ayIgWU6scGC3ElLTzfWusXPJyWFNV5wAtCI0Xu4U/IdNO0rLiBI 33 | 8BSC8VC4Maw/a1ZY1nliXBfjmtJ3i7A2s36+YG11vXmi2BKFXa80BM7+L9zptxf2 34 | Pv7H1Yvyx4bfVZ2xCTLCyjtUj4wGGkmHMTC8M0gniwKCAQBYzQYQos/Jm7jOFzZh 35 | vI9MJC4XkLIRawwcwPDgrj+JrDg12HAiM3EfQfPiUyyIPMqUQXp2q6X++4i3eEu2 36 | d6GDtrseSF3emQqznLB78EKG2FadC+YaMKAruOdM6S+Nm1B/gyihaEMPWKGDfJyA 37 | wiw5aMRDS/6MUegfOV3iBj6Eq7R7Mm7IwaLIi5B7oRyk8spJN9ZMLZ4LWcTbCvZe 38 | qG+BJU7TC2dj/zviAeLHQK1csnRWOABBXcAuO9lN65HFYWf+Hm5oiDEC5MIEciYq 39 | 2TWDzahfCeyHPcjoBqhodGxHebXWEuvZSK4/GvEiylTb544gzG3vd+ni12bxCe7k 40 | 50YhAoIBAQCgG2r3dqYQspl49+P9wH0qn97S1eumB88FqJ99KIZ9Tlmy7Rb/ggl6 41 | xhFPaOBOsfMowY0YZC3IAEjVVEo3IM7i/cwAONJyMe2GGvCAMspxWudA4WaD5r+t 42 | irAXOYdpigYTX0dUQyBDB66v9Uy5VsI6wAQPqlMzZ9g1yfyFEi+8DdUltzP/NXjU 43 | sbcrMYbubazB+dhiTQNmj+pAKMLdWVvgSWvO8kz9BLrH47xFiGGsGHqOtqjv+RPY 44 | j56wyVT6YCjr5UpMrfSLevzqCzwvfaQIW61LpD0yQz46Y0J0Eds2WMDNz/r7guC2 45 | hFJRh2vV+V8h8gEeevAjBcsViir5PKpXAoIBAQC/gAQCLbqo4FylEVST3IP8rxA5 46 | RGbLRDJ2j+ywEzOuy2ufGI/CfxeG/+jF5E0/uBRm8rrnMmaJaNr42hF4r5kjNM5u 47 | ficOVucU3FluQqae73zfUFeAQBft+4tTH+sR8jo+LvEBGinW1wHv7di45I3at2HM 48 | jMtZgWPPIqCBIay0UKysW4eEwXYC9cWg9kPcb2y56zadrKxGZqHOPezH2A1iOuzp 49 | vw0mG0xHUY4Eg5aZxcWB1jMf7bbxTAAMxQiBnw0bPEf5zpWzeKL0obxT/NhCgmV7 50 | /Fqs0GCbXEEgJo0zAVemALOAYRW3pYvt8FoCOopo4ADyfmdWlAvzCy46k7Fo 51 | -----END RSA PRIVATE KEY----- 52 | -------------------------------------------------------------------------------- /laradock/workspace/insecure_id_rsa.ppk: -------------------------------------------------------------------------------- 1 | PuTTY-User-Key-File-2: ssh-rsa 2 | Encryption: none 3 | Comment: imported-openssh-key 4 | Public-Lines: 12 5 | AAAAB3NzaC1yc2EAAAADAQABAAACAQD0tfQNVXxVjST53ny/5Op7ot+GeIGEGAEn 6 | r9kgYAXK6GqnJ/3UOfWKFxl4gEusLj4hpGrT/GJVx2nIG7d/IaRifJvns+Lak4Wj 7 | +17zyPRF54/mic6a0MAREJH5aTOLuSK+DhnhTUqAt4mfdHpYmBXWdTAXDCg8gP5Q 8 | LdGkdxL9M+GBk4tKiDx1hRfHV9uY6ci0lspQrhnPzzeWLktTA8uWYZlus1gv3SXX 9 | 6zVD2+XB6/J7ZarNcK9iHoMLddFggSdnGs6kNLJQe0DAwncdeCQizcdXV2A9O33v 10 | aY/b0A1obUxuoCit629AwyQ9C/71f3rBSrfgUSb1pOVPmhLRJDZenf/NS8FIW194 11 | /u5slvr1u6fj/iiCYctt0PNg00UAnlybWDDKD3l5e8Kbl16uTw1/5AEc6Wl3aCmt 12 | WYpwRGeue/hnUzOXr9/SjhQLfB+ZCASt83N+u0kV7ni7G5/04z11dqZwkk6x1SAz 13 | WGJnp76piwd4AP2fu8KqNAmWsyEIZmmR5JSGS5i4sGuSGog6rZWop1LwIfNjdOLF 14 | bs+rnF0oOmpgZReo8fH+PmOkq3iHaPQvXO3Cj2d52HVxtHI+n2iKjDu3CzHIP31v 15 | fqsZKHfmoo3ckFW4yfrPcXy0gQswPj0jJUIbKLb6OfuptUsQ5SvkiwWoW4irnO3l 16 | KF9KLo3t7w== 17 | Private-Lines: 28 18 | AAACADW3YzUyGLLm4sD+t7+fzmEJZaus9DE827QMg8r5iQv7bL34p11Yw69mVq7+ 19 | 6p2HIRhdcR3LfwJ5XZ0RiHwdtGnyFH8OG7QDQgi2+ybka8qUhCAFDBcrz51vV7u5 20 | /hijsR6rFb9BKiOLJmicNucPq2uCGeZVQtfVMP4EsMo7YS23n77D1oWr1imt54RY 21 | otm0J9yMZSjEruHRCNCspNg6Mwx1rCqCr88B6na1KOIWeR7SXk38CTxDihwtunJf 22 | kHBwqWeWmNmuv52vEI2/okoTv0rshN+FTJjkYEaXk36a8vaDV43JFmTnE2rR6ziD 23 | U5osO5QGhMp2xeiSI8wPdCX4nv5EKgL0+4a610IAhTa70KgUB8ommwqH6wZHKuLO 24 | 8PmGVLfUXvzOJ/tbm5uL2y6kDp60lhsr6bBwOwmCa1z6rnXGwfdPU4O9Fxu3O9gU 25 | TwnO5yE3ho+2xj5b/BpMNUN3KYW89KxiNfsGWrd+emDa4kq3NYQhAT6tjuALes2g 26 | 1IThgVsgCNMziQi4gWeRWrejYGZDtYeNvdRJ6WEXEE8nrucEwtLdKFcuPKK7bZTx 27 | HEpxs4qkSKa4IpFJUR2mw2emzeHbLxzY89ZZLssbMCIJ6kuNfCoct7gv9y/HxL0p 28 | lFdCd5qSQpOiC5Xs32nQ72muMlyRviOj3jWJoN6lVkgdu4/xAAABAQD68AEIqefw 29 | 8DhFaLE9wjJuPqJCkc/O3q5nG/eKXcihjcCebb4QduWgT1VwfemFAQChNCzF36Sh 30 | y0cep0mLpjE5OaaweXeOKUDeQqDQDtGKfvTYM5sLdz1VI57tX2uLM9CcV7CTIM+a 31 | k6hbdvLQNi/QMW0DzM1+BKQV6pkSgGdDIyib2UFhwn1UquJR90K8+CHdlX9LMR9y 32 | npm0wtG+0RbM7HvlzDDqQu9S5R6RCX/tRuvfo7P7vUHrpU3n251Itg8Bv6y3OFtB 33 | JTsts0pouXKAFESqdN5eP5UJcaevE5FlLUV+o726dvGD8VgEMEy3/aNe3oSXPrZi 34 | CMMS0aNxMD+tAAABAQD5pcpbrO58MbzwM+xfmmyXsK7YXCGrWPlQsa+mS65xpWyy 35 | c42YWqLiMfssRlWMRweDoaEOobK1ppSvUqFdVa22fSibapkgoWDsFHsTk9H0cq4i 36 | DR2jryk9//kwpPpMqrWAHWXwHjzV1Vzy2ZoeMdsvP1SUh/y4ttd8/URjIAMConjG 37 | 1A206Pu7PSTlrIiBZTqxwYLcSUtPN9a6xc8nJYU1XnAC0IjRe7hT8h007SsuIEjw 38 | FILxULgxrD9rVljWeWJcF+Oa0neLsDazfr5gbXW9eaLYEoVdrzQEzv4v3Om3F/Y+ 39 | /sfVi/LHht9VnbEJMsLKO1SPjAYaSYcxMLwzSCeLAAABAQC/gAQCLbqo4FylEVST 40 | 3IP8rxA5RGbLRDJ2j+ywEzOuy2ufGI/CfxeG/+jF5E0/uBRm8rrnMmaJaNr42hF4 41 | r5kjNM5uficOVucU3FluQqae73zfUFeAQBft+4tTH+sR8jo+LvEBGinW1wHv7di4 42 | 5I3at2HMjMtZgWPPIqCBIay0UKysW4eEwXYC9cWg9kPcb2y56zadrKxGZqHOPezH 43 | 2A1iOuzpvw0mG0xHUY4Eg5aZxcWB1jMf7bbxTAAMxQiBnw0bPEf5zpWzeKL0obxT 44 | /NhCgmV7/Fqs0GCbXEEgJo0zAVemALOAYRW3pYvt8FoCOopo4ADyfmdWlAvzCy46 45 | k7Fo 46 | Private-MAC: 4ea4cef3fa63f1068dcd512c477c61dd7e85bb38 47 | -------------------------------------------------------------------------------- /laradock/workspace/insecure_id_rsa.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQD0tfQNVXxVjST53ny/5Op7ot+GeIGEGAEnr9kgYAXK6GqnJ/3UOfWKFxl4gEusLj4hpGrT/GJVx2nIG7d/IaRifJvns+Lak4Wj+17zyPRF54/mic6a0MAREJH5aTOLuSK+DhnhTUqAt4mfdHpYmBXWdTAXDCg8gP5QLdGkdxL9M+GBk4tKiDx1hRfHV9uY6ci0lspQrhnPzzeWLktTA8uWYZlus1gv3SXX6zVD2+XB6/J7ZarNcK9iHoMLddFggSdnGs6kNLJQe0DAwncdeCQizcdXV2A9O33vaY/b0A1obUxuoCit629AwyQ9C/71f3rBSrfgUSb1pOVPmhLRJDZenf/NS8FIW194/u5slvr1u6fj/iiCYctt0PNg00UAnlybWDDKD3l5e8Kbl16uTw1/5AEc6Wl3aCmtWYpwRGeue/hnUzOXr9/SjhQLfB+ZCASt83N+u0kV7ni7G5/04z11dqZwkk6x1SAzWGJnp76piwd4AP2fu8KqNAmWsyEIZmmR5JSGS5i4sGuSGog6rZWop1LwIfNjdOLFbs+rnF0oOmpgZReo8fH+PmOkq3iHaPQvXO3Cj2d52HVxtHI+n2iKjDu3CzHIP31vfqsZKHfmoo3ckFW4yfrPcXy0gQswPj0jJUIbKLb6OfuptUsQ5SvkiwWoW4irnO3lKF9KLo3t7w== insecure@laradock 2 | -------------------------------------------------------------------------------- /laradock/workspace/mc/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "8", 3 | "hosts": { 4 | "gcs": { 5 | "url": "https://storage.googleapis.com", 6 | "accessKey": "YOUR-ACCESS-KEY-HERE", 7 | "secretKey": "YOUR-SECRET-KEY-HERE", 8 | "api": "S3v2" 9 | }, 10 | "minio": { 11 | "url": "http://minio:9000", 12 | "accessKey": "access", 13 | "secretKey": "secretkey", 14 | "api": "S3v4" 15 | }, 16 | "play": { 17 | "url": "https://play.minio.io:9000", 18 | "accessKey": "Q3AM3UQ867SPQQA43P2F", 19 | "secretKey": "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG", 20 | "api": "S3v4" 21 | }, 22 | "s3": { 23 | "url": "https://s3.amazonaws.com", 24 | "accessKey": "YOUR-ACCESS-KEY-HERE", 25 | "secretKey": "YOUR-SECRET-KEY-HERE", 26 | "api": "S3v4" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /laradock/workspace/xdebug.ini: -------------------------------------------------------------------------------- 1 | ; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) 2 | 3 | xdebug.remote_host="host.docker.internal" 4 | xdebug.remote_connect_back=0 5 | xdebug.remote_port=9000 6 | xdebug.idekey=PHPSTORM 7 | 8 | xdebug.remote_autostart=0 9 | xdebug.remote_enable=0 10 | xdebug.cli_color=0 11 | xdebug.profiler_enable=0 12 | xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling" 13 | 14 | xdebug.remote_handler=dbgp 15 | xdebug.remote_mode=req 16 | 17 | xdebug.var_display_max_children=-1 18 | xdebug.var_display_max_data=-1 19 | xdebug.var_display_max_depth=-1 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "mix", 5 | "watch": "mix watch", 6 | "watch-poll": "mix watch -- --watch-options-poll=1000", 7 | "hot": "mix watch --hot", 8 | "prod": "mix --production" 9 | }, 10 | "devDependencies": { 11 | "@popperjs/core": "^2.6.0", 12 | "@vue/compiler-sfc": "^3.0.4", 13 | "axios": "^0.19", 14 | "bootstrap": "^5.0.0-beta1", 15 | "browser-sync-webpack-plugin": "^2.0.1", 16 | "cross-env": "^7.0", 17 | "laravel-mix": "^6.0.0-beta.17", 18 | "lodash": "^4.17.19", 19 | "postcss": "^8.2.1", 20 | "resolve-url-loader": "^3.1.0", 21 | "sass": "^1.28.0", 22 | "sass-loader": "^10.0.5", 23 | "vue": "^3.0.4", 24 | "vue-loader": "^16.1.2", 25 | "vue-toastification": "^2.0.0-beta.9", 26 | "vuex": "^4.0.0-rc.2", 27 | "webpack": "^5.11.0" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m-elewa/vurtify/9bf02e2f02fea715aadfe7142928eac98ddc2f88/public/favicon.ico -------------------------------------------------------------------------------- /public/images/bg-masthead.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m-elewa/vurtify/9bf02e2f02fea715aadfe7142928eac98ddc2f88/public/images/bg-masthead.jpg -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = tap($kernel->handle( 52 | $request = Request::capture() 53 | ))->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/app/scripts.js": "/app/scripts.js?id=5cdbb25d89681d8865fd", 3 | "/guest/scripts.js": "/guest/scripts.js?id=d46928d7984fe8816104", 4 | "/guest/styles.css": "/guest/styles.css?id=1e4feb60ee0e27ab951d", 5 | "/app/styles.css": "/app/styles.css?id=a0eb47438bb076b93a20", 6 | "/images/avatar.svg": "/images/avatar.svg?id=81899e18586b10083308", 7 | "/images/bg-masthead.jpg": "/images/bg-masthead.jpg?id=11c7f6fa35b3345aca8d", 8 | "/images/market-launch-pana.svg": "/images/market-launch-pana.svg?id=7eba31d3cff7037083c7" 9 | } 10 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /public/web.config: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /resources/assets/images/bg-masthead.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/m-elewa/vurtify/9bf02e2f02fea715aadfe7142928eac98ddc2f88/resources/assets/images/bg-masthead.jpg -------------------------------------------------------------------------------- /resources/js/app/components/Loading.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 52 | 53 | 85 | 86 | -------------------------------------------------------------------------------- /resources/js/app/components/Modal.vue: -------------------------------------------------------------------------------- 1 | 55 | 56 | 97 | 98 | -------------------------------------------------------------------------------- /resources/js/app/components/UpdateProfile.vue: -------------------------------------------------------------------------------- 1 | 60 | 61 | 101 | 102 | -------------------------------------------------------------------------------- /resources/js/app/components/UpdateProfilePhoto.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 91 | 92 | -------------------------------------------------------------------------------- /resources/js/app/components/UserProfileLink.vue: -------------------------------------------------------------------------------- 1 | 43 | 44 | 52 | 53 | -------------------------------------------------------------------------------- /resources/js/app/popovers.js: -------------------------------------------------------------------------------- 1 | import { Popover } from 'bootstrap'; 2 | 3 | // TODO: convert to Vue 4 | window.addEventListener("load", function () { 5 | let deletePhotoButton = document.getElementById('delete-profile-photo') 6 | let popover = new Popover(deletePhotoButton, { 7 | html: true, 8 | placement: 'auto', 9 | sanitize: false, 10 | title: 'Are you sure you want to delete the profile photo?', 11 | content: 12 | `
13 | 14 | 15 |
` 16 | }) 17 | 18 | deletePhotoButton.addEventListener("shown.bs.popover", function () { 19 | document.getElementById("cancel-delete-profile-photo").addEventListener("click", function () { 20 | popover.hide() 21 | }) 22 | }); 23 | }); 24 | 25 | -------------------------------------------------------------------------------- /resources/js/app/scripts.js: -------------------------------------------------------------------------------- 1 | import 'bootstrap' 2 | import '../navbar' 3 | import './toasts' 4 | import './popovers' 5 | import { createApp } from 'vue' 6 | import UpdateProfile from './components/UpdateProfile' 7 | import UserProfileLink from './components/UserProfileLink' 8 | import UpdateProfilePhoto from './components/UpdateProfilePhoto' 9 | import store from '../store' 10 | // vue toastification 11 | import Toast from "vue-toastification"; 12 | import "vue-toastification/dist/index.css"; 13 | 14 | // init Vue 3 15 | const app = createApp({ 16 | components: { 17 | UpdateProfile, 18 | UserProfileLink, 19 | UpdateProfilePhoto, 20 | } 21 | }) 22 | 23 | app.use(Toast); 24 | app.use(store) 25 | 26 | app.mount("#app") 27 | -------------------------------------------------------------------------------- /resources/js/app/toasts.js: -------------------------------------------------------------------------------- 1 | import { Toast } from 'bootstrap'; 2 | 3 | // TODO: convert to Vue 4 | window.addEventListener("DOMContentLoaded", function(){ 5 | let toastScroll = function () { 6 | let headerHeight = 75; 7 | let toast = document.querySelector('.toast-absolute'); 8 | let scrollValue = window.scrollY; 9 | 10 | if (scrollValue > headerHeight){ 11 | toast.classList.add('toast-fixed'); 12 | 13 | } else if (scrollValue < headerHeight){ 14 | toast.classList.remove('toast-fixed'); 15 | } 16 | }; 17 | 18 | toastScroll(); 19 | window.addEventListener("scroll", toastScroll); 20 | }); 21 | 22 | window.addEventListener("load", function(){ 23 | // Init Bootstrap tosts 24 | let toastElList = [].slice.call(document.querySelectorAll('.toast')) 25 | toastElList.map(function (toastEl) { 26 | let ToastObject = new Toast(toastEl, { 27 | // autohide: true, 28 | // delay: 5000, 29 | // animation: true 30 | }); 31 | ToastObject.show(); 32 | }) 33 | }); 34 | -------------------------------------------------------------------------------- /resources/js/axios.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | const http = axios.create({ 4 | headers: { 5 | common: { 6 | 'X-Requested-With': 'XMLHttpRequest', 7 | } 8 | } 9 | }); 10 | 11 | export default http 12 | -------------------------------------------------------------------------------- /resources/js/guest/scripts.js: -------------------------------------------------------------------------------- 1 | import 'bootstrap'; 2 | import '../navbar'; 3 | -------------------------------------------------------------------------------- /resources/js/navbar.js: -------------------------------------------------------------------------------- 1 | // TODO: convert to Vue 2 | window.addEventListener("DOMContentLoaded", function(){ 3 | let navbarCollapse = function () { 4 | let nav = document.getElementById("mainNav"); 5 | if (window.scrollY > 100) { 6 | nav.classList.add("navbar-shrink"); 7 | } else { 8 | nav.classList.remove("navbar-shrink"); 9 | } 10 | }; 11 | 12 | navbarCollapse(); 13 | window.addEventListener("scroll", navbarCollapse); 14 | }); 15 | -------------------------------------------------------------------------------- /resources/js/store/index.js: -------------------------------------------------------------------------------- 1 | 2 | import { createStore, createLogger } from 'vuex' 3 | import user from './modules/user' 4 | 5 | const debug = process.env.NODE_ENV !== 'production' 6 | 7 | export default createStore({ 8 | modules: { 9 | user 10 | }, 11 | strict: debug, 12 | plugins: debug ? [createLogger()] : [] 13 | }) 14 | -------------------------------------------------------------------------------- /resources/js/store/modules/user.js: -------------------------------------------------------------------------------- 1 | import axios from '../../axios' 2 | import { useToast } from 'vue-toastification' 3 | 4 | const toast = useToast() 5 | 6 | // initial state 7 | const state = () => ({ 8 | profile: { 9 | name: '', 10 | profilePhotoUrl: '', 11 | email: '' 12 | }, 13 | errors: { 14 | profileData: {}, 15 | profilePhoto: {}, 16 | } 17 | }) 18 | 19 | // getters 20 | const getters = { 21 | userProfile (state) { 22 | return state.profile 23 | } 24 | } 25 | 26 | // actions 27 | const actions = { 28 | updateUserProfile ({ commit }, { submitRoute, profileData, loading}) { 29 | loading.showLoading() 30 | commit('setUserProfileDataErrors', {}) 31 | 32 | axios.put(submitRoute, profileData).then((res)=>{ 33 | if(res.status === 200) { 34 | commit('setUserProfileDataErrors', {}) 35 | commit('setUserProfile', res.data.data) 36 | toast.success(res.data.message) 37 | 38 | } else { 39 | toast.error('Unknown Error!') 40 | console.log('res data', res) 41 | } 42 | 43 | }).catch(err => { 44 | if (err.response && err.response.status === 422) { 45 | commit('setUserProfileDataErrors', err.response.data.data) 46 | toast.error('Form Error!') 47 | 48 | } else { 49 | toast.error('Unknown Server Error!') 50 | console.error('catch error data', err) 51 | } 52 | }).finally(() => { 53 | loading.hideLoading() 54 | }) 55 | }, 56 | updateProfilePhoto ({ commit }, {profilePhoto, submitRoute, modal, loading}) { 57 | if(!profilePhoto || !profilePhoto.target || !profilePhoto.target.files[0]) { 58 | return toast.warning('Please choose a photo!') 59 | } 60 | 61 | loading.showLoading() 62 | commit('setUserProfilePhotoErrors', {}) 63 | 64 | const formData= new FormData() 65 | formData.append('photo', profilePhoto.target.files[0]) 66 | formData.append('type', 'photo') 67 | formData.append('_method', 'PUT'); 68 | 69 | axios({ 70 | method: 'post', 71 | url: submitRoute, 72 | data: formData, 73 | 74 | }).then((res)=>{ 75 | if(res.status === 200) { 76 | modal.hideModal() 77 | profilePhoto.target.value = null 78 | commit('setUserProfilePhotoErrors', {}) 79 | commit('setUserProfile', res.data.data) 80 | toast.success(res.data.message) 81 | 82 | } else { 83 | toast.error('Unknown Error!') 84 | console.log('res data', res) 85 | } 86 | 87 | }).catch(err => { 88 | if (err.response && err.response.status === 422) { 89 | commit('setUserProfilePhotoErrors', err.response.data.data) 90 | toast.error('Form Error!') 91 | 92 | } else { 93 | toast.error('Unknown Server Error!') 94 | console.error('catch error data', err) 95 | } 96 | }).finally(() => { 97 | loading.hideLoading() 98 | }) 99 | } 100 | } 101 | 102 | // mutations 103 | const mutations = { 104 | setUserProfile (state, profile) { 105 | state.profile = profile 106 | }, 107 | setUserProfileDataErrors (state, errors) { 108 | state.errors.profileData = errors 109 | }, 110 | setUserProfilePhotoErrors (state, errors) { 111 | state.errors.profilePhoto = errors 112 | }, 113 | } 114 | 115 | export default { 116 | namespaced: true, 117 | state, 118 | getters, 119 | actions, 120 | mutations 121 | } 122 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /resources/sass/_floating-label.scss: -------------------------------------------------------------------------------- 1 | // Floating label 2 | .custom-form-floating { 3 | // display: flex; 4 | // flex-direction: column; 5 | position: relative; 6 | margin-bottom: 1rem; 7 | 8 | >.form-control, 9 | >label { 10 | // height: 3.125rem; 11 | padding: .75rem; 12 | } 13 | 14 | >label { 15 | position: absolute; 16 | top: 0; 17 | left: 0; 18 | display: block; 19 | width: 100%; 20 | // height: auto; 21 | // color: #495057; 22 | color: $input-placeholder-color; 23 | pointer-events: none; 24 | cursor: text; 25 | /* Match the input under the label */ 26 | border: 1px solid transparent; 27 | border-radius: .25rem; 28 | transition: all .1s ease-in-out; 29 | } 30 | 31 | >.form-control { 32 | &::placeholder { 33 | color: transparent; 34 | } 35 | 36 | &:focus, 37 | &:not(:placeholder-shown) { 38 | padding-top: 1.25rem; 39 | padding-bottom: .25rem; 40 | border-bottom: 4px solid $primary; 41 | box-shadow: none; 42 | 43 | &.is-invalid { 44 | border-bottom: 4px solid $danger !important; 45 | } 46 | } 47 | 48 | &:focus~label, 49 | &:not(:placeholder-shown)~label { 50 | padding-top: .25rem; 51 | padding-bottom: .25rem; 52 | font-size: 12px; 53 | // color: #777; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /resources/sass/app/_buttons.scss: -------------------------------------------------------------------------------- 1 | // Custom extra large button size 2 | .btn-xl { 3 | padding: 1rem 1.75rem; 4 | font-size: 1.25rem; 5 | } 6 | 7 | // Custom social buttons 8 | .btn-social { 9 | border-radius: 100%; 10 | display: inline-flex; 11 | width: 3.25rem; 12 | height: 3.25rem; 13 | font-size: 1.25rem; 14 | justify-content: center; 15 | align-items: center; 16 | } 17 | -------------------------------------------------------------------------------- /resources/sass/app/_divider.scss: -------------------------------------------------------------------------------- 1 | // Custom divider with icon 2 | .divider-custom { 3 | margin: 0.5rem 0 0.5rem; 4 | width: 100%; 5 | display: flex; 6 | justify-content: center; 7 | align-items: center; 8 | .divider-custom-line { 9 | width: 100%; 10 | max-width: 7rem; 11 | height: 0.25rem; 12 | background-color: $secondary; 13 | border-radius: 1rem; 14 | border-color: $secondary !important; 15 | &:first-child { 16 | margin-right: 1rem; 17 | } 18 | &:last-child { 19 | margin-left: 1rem; 20 | } 21 | } 22 | .divider-custom-icon { 23 | color: $secondary !important; 24 | font-size: 2rem; 25 | } 26 | &.divider-light { 27 | .divider-custom-line { 28 | background-color: $white; 29 | } 30 | .divider-custom-icon { 31 | color: $white !important; 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /resources/sass/app/_footer.scss: -------------------------------------------------------------------------------- 1 | .footer { 2 | padding-top: 5rem; 3 | padding-bottom: 5rem; 4 | background-color: $secondary; 5 | color: $white; 6 | } 7 | 8 | .copyright { 9 | background-color: darken($secondary, 10%); 10 | } 11 | -------------------------------------------------------------------------------- /resources/sass/app/_global.scss: -------------------------------------------------------------------------------- 1 | // Global styling 2 | body, 3 | html { 4 | width: 100%; 5 | height: 100%; 6 | } 7 | -------------------------------------------------------------------------------- /resources/sass/app/_masthead.scss: -------------------------------------------------------------------------------- 1 | 2 | .masthead { 3 | // padding-top: calc(6rem + 74px); 4 | padding-bottom: 6rem; 5 | .masthead-heading { 6 | font-size: 2.75rem; 7 | line-height: 2.75rem; 8 | } 9 | .masthead-subheading { 10 | font-size: 1.25rem; 11 | } 12 | .masthead-avatar { 13 | width: 20rem; 14 | } 15 | } 16 | 17 | @include media-breakpoint-up(lg) { 18 | .masthead { 19 | // padding-top: calc(6rem + 104px); 20 | padding-bottom: 6rem; 21 | .masthead-heading { 22 | font-size: 4rem; 23 | line-height: 3.5rem; 24 | } 25 | .masthead-subheading { 26 | font-size: 1.5rem; 27 | } 28 | .masthead-avatar { 29 | width: 35rem; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/sass/app/_modal.scss: -------------------------------------------------------------------------------- 1 | // styling for the app modals 2 | .app-modal { 3 | .app-modal-title { 4 | font-size: 2.25rem; 5 | line-height: 2rem; 6 | 7 | @include media-breakpoint-up(lg) { 8 | font-size: 3rem; 9 | line-height: 2.5rem; 10 | } 11 | } 12 | 13 | .close { 14 | position: absolute; 15 | z-index: 1; 16 | right: 1.5rem; 17 | top: 1rem; 18 | font-size: 3rem; 19 | line-height: 3rem; 20 | color: $primary; 21 | opacity: 1; 22 | } 23 | 24 | .modal-body { 25 | padding: 1rem 1rem; 26 | } 27 | 28 | .modal-dialog { 29 | transform: translate(0, -50%) !important; 30 | top: 50%; 31 | margin: 0 auto; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /resources/sass/app/_navbar.scss: -------------------------------------------------------------------------------- 1 | // Styling for the navbar 2 | #mainNav { 3 | // padding-top: 1rem; 4 | // padding-bottom: 1rem; 5 | font-family: $headings-font-family; 6 | font-weight: $headings-font-weight; 7 | .navbar-brand { 8 | color: $white; 9 | font-size: 1.5em; 10 | } 11 | 12 | padding-top: 0.5rem; 13 | padding-bottom: 0.5rem; 14 | 15 | .navbar-nav { 16 | margin-top: 1rem; 17 | li.nav-item { 18 | a.nav-link { 19 | color: $white; 20 | &:hover { 21 | color: $primary; 22 | } 23 | &:active, 24 | &:focus { 25 | color: $white; 26 | } 27 | &.active { 28 | color: $primary; 29 | } 30 | } 31 | } 32 | } 33 | .navbar-toggler { 34 | font-size: 80%; 35 | padding: 0.8rem; 36 | } 37 | } 38 | @include media-breakpoint-up(lg) { 39 | #mainNav { 40 | // padding-top: 1.5rem; 41 | // padding-bottom: 1.5rem; 42 | transition: padding-top 0.3s, padding-bottom 0.3s; 43 | .navbar-brand { 44 | // font-size: 1.75em; 45 | transition: font-size 0.3s; 46 | } 47 | .navbar-nav { 48 | margin-top: 0; 49 | } 50 | .navbar-nav > li.nav-item > a.nav-link.active { 51 | color: $white; 52 | background: $primary; 53 | &:active, 54 | &:focus, 55 | &:hover { 56 | color: $white; 57 | background: $primary; 58 | } 59 | } 60 | } 61 | #mainNav.navbar-shrink { 62 | padding-top: 0.5rem; 63 | padding-bottom: 0.5rem; 64 | .navbar-brand { 65 | font-size: 1.5em; 66 | } 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /resources/sass/app/_profile-photo.scss: -------------------------------------------------------------------------------- 1 | // styling for profile photo 2 | .profile-photo { 3 | cursor: pointer; 4 | position: relative; 5 | display: block; 6 | max-width: 25rem; 7 | border-radius: $border-radius; 8 | overflow: hidden; 9 | 10 | .profile-photo-caption { 11 | position: absolute; 12 | top: 0; 13 | left: 0; 14 | transition: $transition-base; 15 | opacity: 0; 16 | background-color: fade-out($primary, 0.1); 17 | 18 | &:hover { 19 | opacity: 1; 20 | } 21 | 22 | .profile-photo-caption-content { 23 | font-size: 1.5rem; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/sass/app/_toast.scss: -------------------------------------------------------------------------------- 1 | // styling for toasts 2 | .toast-fixed { 3 | position: fixed !important; 4 | top: 10px !important; 5 | right: 10px !important; 6 | } 7 | 8 | .toast-absolute { 9 | position: absolute; 10 | top: 75px; 11 | right: 10px; 12 | z-index: 1; 13 | } 14 | -------------------------------------------------------------------------------- /resources/sass/app/_variables.scss: -------------------------------------------------------------------------------- 1 | // Variables 2 | // Body 3 | $body-bg: #f8fafc; 4 | $body-color: #212529; 5 | 6 | // Set custom colors 7 | $teal: #1abc9c; 8 | $dark-blue: #2c3e50; 9 | 10 | // Colors 11 | $blue: #3490dc; 12 | $indigo: #6574cd; 13 | $purple: #9561e2; 14 | $pink: #f66d9b; 15 | $red: #e3342f; 16 | $orange: #f4623a; 17 | $yellow: #ffed4a; 18 | $green: #38c172; 19 | $cyan: #6cb2eb; 20 | 21 | // Override Bootstrap primary and secondary colors 22 | $primary: $teal; 23 | $secondary: $dark-blue; 24 | 25 | // Override Bootstrap font variables 26 | $font-family-sans-serif: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", 27 | Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, 28 | "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 29 | $headings-font-family: "Montserrat", -apple-system, BlinkMacSystemFont, 30 | "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, 31 | "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 32 | $headings-font-weight: 700; 33 | 34 | // Override Bootstrap border variables 35 | $border-width: 0.125rem; 36 | $border-radius: 0.5rem; 37 | $border-radius-lg: 0.75rem; 38 | $border-radius-sm: 0.25rem; 39 | 40 | // Override Bootstrap input/button variables 41 | $input-btn-border-width: $border-width; 42 | 43 | // Override Bootstrap modal variables 44 | $modal-inner-padding: 4rem 1rem; 45 | $modal-content-border-width: 0; 46 | 47 | // Restate the spacer variable for overriding grid gutter width 48 | $spacer: 1rem; 49 | 50 | // Override the spacing between columns to add symmetry to the layout 51 | $grid-gutter-width: $spacer * 3; 52 | 53 | // Options 54 | $enable-shadows: true; 55 | $enable-negative-margins: true; 56 | -------------------------------------------------------------------------------- /resources/sass/app/styles.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | // @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap'); 3 | @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700'); 4 | @import url('https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic'); 5 | 6 | // Import custom variables and override default Bootstrap variables 7 | @import "variables"; 8 | 9 | // Import Bootstrap v5.0.0-alpha3 10 | @import "~bootstrap/scss/bootstrap"; 11 | 12 | // Import custom styles 13 | @import "global.scss"; 14 | @import "navbar.scss"; 15 | @import "masthead.scss"; 16 | @import "divider.scss"; 17 | @import "footer.scss"; 18 | @import "buttons.scss"; 19 | @import "modal.scss"; 20 | @import "toast.scss"; 21 | @import "profile-photo.scss"; 22 | @import "../floating-label.scss"; 23 | -------------------------------------------------------------------------------- /resources/sass/guest/_global.scss: -------------------------------------------------------------------------------- 1 | // Global styling for this theme 2 | body, 3 | html { 4 | width: 100%; 5 | height: 100%; 6 | } 7 | 8 | //- Body background 9 | body::after { 10 | content: ""; 11 | background: linear-gradient( 12 | to bottom, 13 | #{fade-out($brown, 0.2)} 0%, 14 | #{fade-out($brown, 0.2)} 100% 15 | ), 16 | $background-image; 17 | top: 0; 18 | left: 0; 19 | bottom: 0; 20 | right: 0; 21 | position: fixed; 22 | z-index: -1; 23 | background-position: center; 24 | background-size: cover; 25 | background-attachment: scroll; 26 | background-repeat: no-repeat; 27 | } 28 | 29 | //- Custom text color 30 | .text-white-75 { 31 | color: fade-out($white, 0.25); 32 | } 33 | 34 | //- Button restyling 35 | .btn { 36 | font-family: $font-family-sans-serif; 37 | } 38 | 39 | //- Custom XL button styling 40 | .btn-xl { 41 | padding: 1.25rem 2.25rem; 42 | font-size: 0.85rem; 43 | font-weight: 700; 44 | text-transform: uppercase; 45 | border: none; 46 | border-radius: 10rem; 47 | } 48 | -------------------------------------------------------------------------------- /resources/sass/guest/_masthead.scss: -------------------------------------------------------------------------------- 1 | // Styling for the masthead 2 | section.masthead { 3 | padding-top: 10rem; 4 | padding-bottom: calc(10rem - #{$navbar-height}); 5 | h1 { 6 | font-size: 2.25rem; 7 | } 8 | @include media-breakpoint-up(lg) { 9 | min-height: 40rem; 10 | padding-top: $navbar-height; 11 | padding-bottom: 0; 12 | p { 13 | font-size: 1.15rem; 14 | } 15 | h1 { 16 | font-size: 3rem; 17 | } 18 | } 19 | @include media-breakpoint-up(xl) { 20 | h1 { 21 | font-size: 3.5rem; 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /resources/sass/guest/_navbar.scss: -------------------------------------------------------------------------------- 1 | // Base styling for the navbar 2 | #mainNav { 3 | box-shadow: $box-shadow; 4 | background-color: $white; 5 | transition: background-color 0.2s ease; 6 | .navbar-brand { 7 | font-family: $font-family-sans-serif; 8 | font-weight: $font-weight-bold; 9 | color: $gray-900; 10 | } 11 | .navbar-nav { 12 | .nav-item { 13 | .nav-link { 14 | color: $gray-600; 15 | font-family: $font-family-sans-serif; 16 | font-weight: $font-weight-bold; 17 | font-size: 0.9rem; 18 | padding: 0.75rem 0; 19 | &:hover, 20 | &:active { 21 | color: $primary; 22 | } 23 | &.active { 24 | color: $primary !important; 25 | } 26 | } 27 | } 28 | } 29 | @include media-breakpoint-up(lg) { 30 | // Base styling for the navbar - screen sizes greater than the large breakpoint 31 | box-shadow: none; 32 | background-color: transparent; 33 | .navbar-brand { 34 | color: fade-out($white, 0.3); 35 | &:hover { 36 | color: $white; 37 | } 38 | } 39 | .navbar-nav { 40 | .nav-item { 41 | .nav-link { 42 | color: fade-out($white, 0.3); 43 | padding: 0 1rem; 44 | &:hover { 45 | color: $white; 46 | } 47 | } 48 | &:last-child { 49 | .nav-link { 50 | padding-right: 0; 51 | } 52 | } 53 | } 54 | } 55 | // Navbar styling applied when the page is scrolled 56 | &.navbar-shrink { 57 | box-shadow: $box-shadow; 58 | background-color: $white; 59 | .navbar-brand { 60 | color: $gray-900; 61 | &:hover { 62 | color: $primary; 63 | } 64 | } 65 | .navbar-nav { 66 | .nav-item { 67 | .nav-link { 68 | color: $gray-900; 69 | &:hover { 70 | color: $primary; 71 | } 72 | } 73 | } 74 | } 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /resources/sass/guest/_variables.scss: -------------------------------------------------------------------------------- 1 | // Variables 2 | 3 | //- Add custom variables 4 | $navbar-height: 4.5rem; 5 | $background-image: url("../../assets/images/bg-masthead.jpg"); 6 | 7 | // Body 8 | $body-bg: #f8fafc; 9 | $body-color: #212529; 10 | 11 | // Typography 12 | //- Override font system 13 | $font-family-sans-serif: "Merriweather Sans", -apple-system, BlinkMacSystemFont, 14 | "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, 15 | "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 16 | $font-family-serif: "Merriweather", -apple-system, BlinkMacSystemFont, 17 | "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, 18 | "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 19 | $font-family-base: $font-family-serif; 20 | $headings-font-family: $font-family-sans-serif; 21 | 22 | $font-size-base: 0.9rem; 23 | $line-height-base: 1.6; 24 | 25 | // Colors 26 | $blue: #3490dc; 27 | $indigo: #6574cd; 28 | $purple: #9561e2; 29 | $pink: #f66d9b; 30 | $red: #e3342f; 31 | $orange: #f4623a; 32 | $yellow: #ffed4a; 33 | $green: #38c172; 34 | $teal: #4dc0b5; 35 | $cyan: #6cb2eb; 36 | 37 | //- add to color system 38 | $brown: #5c4d42; 39 | 40 | //- Override primary color 41 | $primary: $orange; 42 | 43 | // Options 44 | $enable-shadows: true; 45 | $enable-gradients: true; 46 | $enable-negative-margins: true; 47 | -------------------------------------------------------------------------------- /resources/sass/guest/styles.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | // @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap'); 3 | @import url('https://fonts.googleapis.com/css?family=Merriweather+Sans:400,700'); 4 | @import url('https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic'); 5 | 6 | // Import custom variables and override default Bootstrap variables 7 | @import "variables"; 8 | 9 | // Import Bootstrap v5.0.0-alpha3 10 | @import "~bootstrap/scss/bootstrap"; 11 | 12 | // Import custom styles 13 | @import "global.scss"; 14 | @import "navbar.scss"; 15 | @import "masthead.scss"; 16 | @import "../floating-label.scss"; 17 | -------------------------------------------------------------------------------- /resources/views/auth/confirm-password.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 |

{{ __('Confirm Password') }}

8 |
9 | {{ __('For your security, please confirm your password to continue.') }} 10 |
11 |
12 | @csrf 13 | 14 |
15 | 18 | 19 | 20 | @error('password') 21 | 22 | {{ $message }} 23 | 24 | @enderror 25 |
26 | 27 |
28 | 31 | 32 | 33 | {{ __('Nevermind') }} 34 | 35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | -------------------------------------------------------------------------------- /resources/views/auth/forgot-password.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 |

{{ __('Reset Password') }}

8 |
9 | @csrf 10 | 11 |
12 | 15 | 16 | 17 | @error('email') 18 | 19 | {{ $message }} 20 | 21 | @enderror 22 |
23 | 24 |
25 | 28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 |

{{ __('Login') }}

8 |
9 | @csrf 10 | 11 |
12 | 15 | 16 | 17 | @error('email') 18 | 19 | {{ $message }} 20 | 21 | @enderror 22 |
23 | 24 |
25 | 28 | 29 | 30 | @error('password') 31 | 32 | {{ $message }} 33 | 34 | @enderror 35 |
36 | 37 |
38 |
39 | 41 | 42 | 45 |
46 |
47 | 48 |
49 | 52 | 53 | 54 | {{ __('Forgot Your Password?') }} 55 | 56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | -------------------------------------------------------------------------------- /resources/views/auth/register.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 |

{{ __('Register') }}

8 |
9 | @csrf 10 | 11 |
12 | 13 | 14 | 15 | @error('name') 16 | 17 | {{ $message }} 18 | 19 | @enderror 20 |
21 | 22 |
23 | 24 | 25 | 26 | @error('email') 27 | 28 | {{ $message }} 29 | 30 | @enderror 31 |
32 | 33 |
34 | 35 | 36 | 37 | @error('password') 38 | 39 | {{ $message }} 40 | 41 | @enderror 42 |
43 | 44 |
45 | 46 | 47 |
48 | 49 |
50 | 53 | 54 | 55 | {{ __('Already registered?') }} 56 | 57 |
58 | 59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | -------------------------------------------------------------------------------- /resources/views/auth/reset-password.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 |

{{ __('Reset Password') }}

8 |
9 | @csrf 10 | 11 | 13 | 14 |
15 | 16 | 20 | 21 | 22 | @error('email') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
28 | 29 |
30 | 33 | 34 | 35 | @error('password') 36 | 37 | {{ $message }} 38 | 39 | @enderror 40 |
41 | 42 |
43 | 46 | 47 |
48 | 49 |
50 | 53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | -------------------------------------------------------------------------------- /resources/views/auth/verify-email.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
{{ __('Verify Your Email Address') }}
7 | 8 |
9 | {{ __('Before proceeding, please check your email for a verification link.') }} 10 | {{ __('If you did not receive the email') }}, 11 |
12 |
14 | @csrf 15 | 17 |
18 | . 19 |
20 | @csrf 21 | 22 | 25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/footer.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 5 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/header.blade.php: -------------------------------------------------------------------------------- 1 | 41 | -------------------------------------------------------------------------------- /resources/views/components/layouts/app/toasts.blade.php: -------------------------------------------------------------------------------- 1 |
2 | @if(session('status-success-toast')) 3 | 11 | 12 | @elseif(session('status-fail-toast')) 13 | 21 | 22 | @elseif(session('status-toast')) 23 | 31 | @endif 32 |
33 | -------------------------------------------------------------------------------- /resources/views/components/layouts/guest/footer.blade.php: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /resources/views/components/layouts/guest/header.blade.php: -------------------------------------------------------------------------------- 1 | 58 | -------------------------------------------------------------------------------- /resources/views/components/layouts/session-alerts.blade.php: -------------------------------------------------------------------------------- 1 | @if(session('status-success')) 2 |
3 | 7 |
8 | @elseif(session('status-fail')) 9 |
10 | 14 |
15 | @elseif(session('status')) 16 |
17 | 21 |
22 | @endif 23 | -------------------------------------------------------------------------------- /resources/views/components/modal.blade.php: -------------------------------------------------------------------------------- 1 | 40 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ config('app.name', 'Laravel') }} 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | {{-- Toasts --}} 18 | 19 | 20 |
21 | 22 | 23 | 24 |
25 | 26 | {{ $slot }} 27 |
28 | 29 | 30 | 31 |
32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /resources/views/layouts/guest.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ config('app.name', 'Laravel') }} 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 |
24 | {{ $slot }} 25 |
26 | 27 | 28 | 29 |
30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 |
6 |

Vurtify - Boilerplate Project

7 |

8 | Get the best out of Laravel 8 - without dealing with the complexity of Jetstream and Tailwind. 9 | Instead, we are using Bootstrap 5 and Vue 3 10 |

11 |
12 | Learn more 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('welcome'); 21 | 22 | Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () { 23 | return view('dashboard'); 24 | })->name('dashboard'); 25 | 26 | 27 | Route::group(['middleware' => 'auth:sanctum'], function () { 28 | // User & Profile... 29 | Route::get('/user/profile', [UserProfileController::class, 'edit']) 30 | ->name('profile.edit'); 31 | 32 | Route::delete('/user/profile/delete-profile-photo', [UserProfileController::class, 'deleteProfilePhoto']) 33 | ->name('profile.delete-profile-photo'); 34 | 35 | Route::delete('/user/profile/delete-user', [UserProfileController::class, 'deleteUser']) 36 | ->name('profile.delete-user'); 37 | 38 | Route::delete('/user/profile/logout-other-browser-sessions', [UserProfileController::class, 'logoutOtherBrowserSessions']) 39 | ->name('profile.logout-other-browser-sessions'); 40 | }); 41 | 42 | // Override Fortify route 43 | Route::group(['middleware' => config('fortify.middleware', ['web'])], function () { 44 | // Profile Information... 45 | Route::put('/user/profile-information', [ProfileInformationController::class, 'update']) 46 | ->middleware(['auth']) 47 | ->name('user-profile-information.update'); 48 | 49 | Route::put('/user/profile-photo', [ProfileInformationController::class, 'updateProfilePhoto']) 50 | ->middleware(['auth']) 51 | ->name('user-profile-photo.update'); 52 | }); 53 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/debugbar/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | mix.js('resources/js/app/scripts.js', 'public/app') 4 | .sass('resources/sass/app/styles.scss', 'public/app') 5 | .js('resources/js/guest/scripts.js', 'public/guest') 6 | .sass('resources/sass/guest/styles.scss', 'public/guest') 7 | .copyDirectory('resources/assets/images', 'public/images') 8 | .vue() 9 | .version(); 10 | --------------------------------------------------------------------------------