├── .actrc ├── .docker ├── local │ └── Dockerfile └── prod │ └── Dockerfile ├── .dockerignore ├── .editorconfig ├── .env.example ├── .gitattributes ├── .gitignore ├── .ignition.json ├── .markdownlint.json ├── .prettierrc ├── .scripts └── local │ ├── bump.bat │ ├── bump.sh │ ├── install.bat │ └── install.sh ├── .styleci.yml ├── .vscode ├── extensions.json ├── settings.json ├── tailwind.json └── terminals.json ├── DOCS.md ├── LICENSE ├── README.md ├── app ├── Actions │ └── Fortify │ │ ├── CreateNewUser.php │ │ ├── PasswordValidationRules.php │ │ ├── ResetUserPassword.php │ │ ├── UpdateUserPassword.php │ │ └── UpdateUserProfileInformation.php ├── Console │ ├── Commands │ │ ├── LarastanScanCommand.php │ │ └── PintFixCommand.php │ └── Kernel.php ├── Exceptions │ └── Handler.php ├── Http │ ├── Controllers │ │ ├── Api │ │ │ ├── ApiController.php │ │ │ └── Auth │ │ │ │ └── AuthController.php │ │ ├── Controller.php │ │ └── Web │ │ │ ├── Controller.php │ │ │ └── Home │ │ │ └── HomeController.php │ ├── Kernel.php │ ├── Middleware │ │ ├── Authenticate.php │ │ ├── EncryptCookies.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── RedirectIfAuthenticated.php │ │ ├── TrimStrings.php │ │ ├── TrustHosts.php │ │ ├── TrustProxies.php │ │ └── VerifyCsrfToken.php │ └── Requests │ │ └── Api │ │ ├── ApiFormRequest.php │ │ └── Auth │ │ ├── UserLoginRequest.php │ │ └── UserRegisterRequest.php ├── Models │ └── User.php ├── Providers │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── BroadcastServiceProvider.php │ ├── EventServiceProvider.php │ ├── Filament │ │ └── AdminPanelProvider.php │ ├── FortifyServiceProvider.php │ ├── RouteServiceProvider.php │ └── SanctumServiceProvider.php ├── Repositories │ └── BaseRepository.php └── Traits │ ├── EnumToArray.php │ └── StorageTrait.php ├── artisan ├── bootstrap ├── app.php └── cache │ └── .gitignore ├── composer.json ├── composer.lock ├── config ├── app.php ├── auth.php ├── broadcasting.php ├── cache.php ├── clockwork.php ├── cors.php ├── data.php ├── database.php ├── debugbar.php ├── filament.php ├── filesystems.php ├── fortify.php ├── hashing.php ├── log-viewer.php ├── logging.php ├── mail.php ├── pretty-routes.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 └── seeders │ ├── DatabaseSeeder.php │ ├── DevSeeder.php │ ├── Local │ └── User │ │ ├── DefaultUserSeeder.php │ │ └── UserSeeder.php │ └── ProdSeeder.php ├── docker-compose-dev.yml ├── docker-compose.yml ├── lang ├── en │ ├── auth.php │ ├── crud.php │ ├── pagination.php │ ├── passwords.php │ └── validation.php └── tr │ ├── auth.php │ ├── crud.php │ ├── pagination.php │ ├── passwords.php │ └── validation.php ├── package.json ├── phpstan.neon ├── phpunit.xml ├── pint.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── .htaccess ├── favicon.ico ├── index.php └── robots.txt ├── ray.php ├── resources ├── assets │ └── images │ │ ├── auth │ │ ├── bg-dark.jpg │ │ └── bg-light.jpg │ │ └── defaults │ │ └── content-placeholder.png ├── css │ └── app.css ├── docs │ └── 1.0 │ │ ├── index.md │ │ └── overview.md ├── js │ ├── app.js │ ├── bootstrap.js │ └── components │ │ └── ExampleComponent.vue ├── sass │ ├── _variables.scss │ ├── app.scss │ ├── layouts │ │ └── partials │ │ │ └── navbar.scss │ └── partials │ │ ├── base-bootstrap.scss │ │ └── base-tailwind.scss ├── vendor │ └── fortify-ui │ │ ├── css │ │ └── starter.css │ │ ├── package.json │ │ ├── pnpm-lock.yaml │ │ ├── sass │ │ └── starter │ │ │ ├── auth.scss │ │ │ ├── components │ │ │ ├── inputs.scss │ │ │ └── verify-notice-card.scss │ │ │ ├── dark.scss │ │ │ ├── layout │ │ │ └── main.scss │ │ │ └── variables.scss │ │ ├── tailwind.config.js │ │ ├── views │ │ └── starter │ │ │ ├── components │ │ │ ├── generic-errors.blade.php │ │ │ ├── partials │ │ │ │ └── eye-toggle-script.blade.php │ │ │ ├── social-login.blade.php │ │ │ ├── social-register.blade.php │ │ │ └── svg-icons │ │ │ │ ├── arrow-right.blade.php │ │ │ │ ├── email.blade.php │ │ │ │ ├── eye-close.blade.php │ │ │ │ ├── eye-open.blade.php │ │ │ │ ├── login-gate.blade.php │ │ │ │ ├── name.blade.php │ │ │ │ ├── password.blade.php │ │ │ │ └── username.blade.php │ │ │ └── pages │ │ │ ├── confirm-password.blade.php │ │ │ ├── login.blade.php │ │ │ ├── register.blade.php │ │ │ └── verification │ │ │ └── notice.blade.php │ │ └── webpack.mix.js └── views │ ├── .DS_Store │ ├── auth │ ├── layouts │ │ ├── layout.blade.php │ │ └── partials │ │ │ ├── head.blade.php │ │ │ └── navbar.blade.php │ └── pages │ │ └── .gitkeep │ ├── errors │ ├── 401.blade.php │ ├── 403.blade.php │ ├── 404.blade.php │ ├── 419.blade.php │ ├── 429.blade.php │ ├── 500.blade.php │ ├── 503.blade.php │ ├── layout.blade.php │ └── minimal.blade.php │ ├── guest │ ├── layouts │ │ ├── layout.blade.php │ │ └── partials │ │ │ └── navbar.blade.php │ └── pages │ │ └── .gitkeep │ └── web │ ├── layouts │ ├── layout.blade.php │ └── partials │ │ ├── head.blade.php │ │ └── navbar.blade.php │ └── pages │ ├── home │ └── index.blade.php │ └── landing │ └── index.blade.php ├── routes ├── api-auth.php ├── api.php ├── channels.php ├── console.php └── web.php ├── storage ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── clockwork │ └── .gitignore ├── debugbar │ └── .gitignore ├── framework │ ├── .gitignore │ ├── cache │ │ ├── .gitignore │ │ └── data │ │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ └── views │ │ └── .gitignore └── logs │ └── .gitignore ├── stubs ├── cast.inbound.stub ├── cast.stub ├── console.stub ├── controller.api.stub ├── controller.invokable.stub ├── controller.model.api.stub ├── controller.model.stub ├── controller.nested.api.stub ├── controller.nested.singleton.api.stub ├── controller.nested.singleton.stub ├── controller.nested.stub ├── controller.plain.stub ├── controller.singleton.api.stub ├── controller.singleton.stub ├── controller.stub ├── event.stub ├── factory.stub ├── job.queued.stub ├── job.stub ├── mail.stub ├── markdown-mail.stub ├── markdown-notification.stub ├── middleware.stub ├── migration.create.stub ├── migration.stub ├── migration.update.stub ├── model.pivot.stub ├── model.stub ├── notification.stub ├── observer.plain.stub ├── observer.stub ├── policy.plain.stub ├── policy.stub ├── provider.stub ├── request.stub ├── resource-collection.stub ├── resource.stub ├── rule.stub ├── scope.stub ├── seeder.stub ├── test.stub ├── test.unit.stub └── view-component.stub ├── tailwind.config.js ├── tests ├── CreatesApplication.php ├── ExampleTest.php ├── Feature │ └── ExampleTest.php ├── Pest.php ├── TestCase.php └── Unit │ └── ExampleTest.php └── vite.config.js /.actrc: -------------------------------------------------------------------------------- 1 | --container-architecture=linux/amd64 2 | --action-offline-mode 3 | -------------------------------------------------------------------------------- /.docker/local/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM serversideup/php:8.3-fpm-nginx-v3.3.0 AS base 2 | 3 | # Set working directory 4 | WORKDIR /var/www/html 5 | 6 | # Switch user to root 7 | USER root 8 | 9 | # Install required php extensions 10 | RUN install-php-extensions zip intl exif bcmath gd 11 | 12 | # ---- Dependencies ---- 13 | FROM base AS dependencies 14 | 15 | # Install Node.js 16 | RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ 17 | && apt-get install -y nodejs 18 | 19 | # Install pnpm 20 | RUN npm i -g pnpm 21 | 22 | # Copy package.json and pnpm-lock.yaml 23 | COPY . . 24 | 25 | RUN rm -rf node_modules 26 | RUN rm pnpm-lock.yaml 27 | 28 | # Install node packages 29 | RUN pnpm set progress=false && pnpm config set depth 0 30 | RUN pnpm i 31 | RUN pnpm build 32 | 33 | # Install composer packages 34 | RUN composer install 35 | 36 | # ---- Release ---- 37 | FROM base AS production 38 | 39 | # Copy node_modules from dependencies 40 | COPY --from=dependencies /var/www/html/node_modules /var/www/html/node_modules 41 | COPY --from=dependencies /var/www/html/vendor /var/www/html/vendor 42 | COPY --from=dependencies /var/www/html/public/build /var/www/html/public/build 43 | 44 | # Switch to www-data user 45 | USER www-data 46 | 47 | # Expose port 48 | EXPOSE 8080 49 | -------------------------------------------------------------------------------- /.docker/prod/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM serversideup/php:8.3-fpm-nginx-v3.3.0 AS base 2 | 3 | # Set working directory 4 | WORKDIR /var/www/html 5 | 6 | # Switch user to root 7 | USER root 8 | 9 | # Install required php extensions 10 | RUN install-php-extensions zip intl exif bcmath gd 11 | 12 | # ---- Dependencies ---- 13 | FROM base AS dependencies 14 | 15 | # Install Node.js 16 | RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ 17 | && apt-get install -y nodejs 18 | 19 | # Install pnpm 20 | RUN npm i -g pnpm 21 | 22 | # Copy package.json and pnpm-lock.yaml 23 | COPY . . 24 | 25 | RUN rm -rf node_modules 26 | RUN rm pnpm-lock.yaml 27 | 28 | # Install node packages 29 | RUN pnpm set progress=false && pnpm config set depth 0 30 | RUN pnpm i 31 | RUN pnpm build 32 | 33 | # Install composer packages 34 | RUN composer install --no-dev --no-scripts --prefer-dist --optimize-autoloader 35 | 36 | # ---- Release ---- 37 | FROM base AS production 38 | 39 | # Copy node_modules from dependencies 40 | COPY --from=dependencies /var/www/html/node_modules /var/www/html/node_modules 41 | COPY --from=dependencies /var/www/html/vendor /var/www/html/vendor 42 | COPY --from=dependencies /var/www/html/public/build /var/www/html/public/build 43 | 44 | # Switch to www-data user 45 | USER www-data 46 | 47 | # Expose port 48 | EXPOSE 8080 49 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | vendor 3 | *.log 4 | .dockerignore 5 | .git 6 | -------------------------------------------------------------------------------- /.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 | 17 | [docker-compose.yml] 18 | indent_size = 4 19 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost:8001 6 | APP_PORT=8001 7 | APP_LOCALE=en 8 | APP_TIMEZONE=UTC 9 | 10 | LOG_CHANNEL=daily 11 | LOG_DEPRECATIONS_CHANNEL=null 12 | LOG_LEVEL=debug 13 | LOG_STORE_LAST_X_DAYS=1000 14 | 15 | DB_CONNECTION=mysql 16 | DB_HOST=ls_dev_db 17 | DB_PORT=3306 18 | DB_DATABASE=laravel_starter 19 | DB_USERNAME=root 20 | DB_PASSWORD=laravel_starter 21 | 22 | BROADCAST_DRIVER=log 23 | CACHE_DRIVER=file 24 | FILESYSTEM_DISK=local 25 | QUEUE_CONNECTION=sync 26 | SESSION_DRIVER=file 27 | SESSION_LIFETIME=120 28 | 29 | MEMCACHED_HOST=127.0.0.1 30 | 31 | REDIS_HOST=127.0.0.1 32 | REDIS_PASSWORD=null 33 | REDIS_PORT=6379 34 | 35 | MAIL_MAILER=smtp 36 | MAIL_HOST=mailhog 37 | MAIL_PORT=1025 38 | MAIL_USERNAME=null 39 | MAIL_PASSWORD=null 40 | MAIL_ENCRYPTION=null 41 | MAIL_FROM_ADDRESS="hello@example.com" 42 | MAIL_FROM_NAME="${APP_NAME}" 43 | 44 | AWS_ACCESS_KEY_ID= 45 | AWS_SECRET_ACCESS_KEY= 46 | AWS_DEFAULT_REGION=us-east-1 47 | AWS_BUCKET= 48 | AWS_USE_PATH_STYLE_ENDPOINT=false 49 | 50 | PUSHER_APP_ID= 51 | PUSHER_APP_KEY= 52 | PUSHER_APP_SECRET= 53 | PUSHER_APP_CLUSTER=mt1 54 | 55 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 56 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 57 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | *.blade.php diff=html 4 | *.css diff=css 5 | *.html diff=html 6 | *.md diff=markdown 7 | *.php diff=php 8 | 9 | /.github export-ignore 10 | CHANGELOG.md export-ignore 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /public/dist 5 | /public/build 6 | /storage/*.key 7 | /vendor 8 | 9 | # env files 10 | .env 11 | .env.backup 12 | .env.local 13 | .env.prod 14 | .env.staging 15 | 16 | .phpunit.result.cache 17 | Homestead.json 18 | Homestead.yaml 19 | npm-debug.log 20 | yarn-error.log 21 | /.idea 22 | /public/assets 23 | **/*.zip 24 | .phpunit.cache 25 | 26 | resources/views/vendor/**/* 27 | resources/sass/apps/**/* 28 | public/mix-manifest.json 29 | public/js/filament 30 | public/css/filament 31 | public/vendor 32 | 33 | // ide helper 34 | _ide_helper.php 35 | _ide_helper_models.php 36 | -------------------------------------------------------------------------------- /.ignition.json: -------------------------------------------------------------------------------- 1 | {"theme":"auto","editor":"vscode","hide_solutions":false} -------------------------------------------------------------------------------- /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "MD013": false, 3 | "MD033": false 4 | } 5 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 140, 3 | "singleQuote": true, 4 | "useTabs": true, 5 | "tabWidth": 4, 6 | "semi": true, 7 | "bracketSpacing": true 8 | } 9 | -------------------------------------------------------------------------------- /.scripts/local/bump.bat: -------------------------------------------------------------------------------- 1 | @REM update all packages to the latest minor and patch version 2 | 3 | @REM ensure PNPM is installed 4 | CALL pnpm add -g pnpm 5 | 6 | @REM check all updates and update them 7 | CALL npx --yes npm-check-updates --packageManager npm --target minor -u 8 | 9 | @REM install node dependencies 10 | CALL pnpm i --no-frozen-lockfile 11 | 12 | @REM update composer dependencies 13 | CALL composer update 14 | -------------------------------------------------------------------------------- /.scripts/local/bump.sh: -------------------------------------------------------------------------------- 1 | # update all packages to the latest minor and patch version 2 | 3 | # ensure PNPM is installed 4 | pnpm add -g pnpm 5 | 6 | # check all updates and update them 7 | npx --yes npm-check-updates --packageManager pnpm --target minor -u 8 | 9 | # install node dependencies 10 | pnpm i --no-frozen-lockfile 11 | 12 | # update composer dependencies 13 | composer update 14 | -------------------------------------------------------------------------------- /.scripts/local/install.bat: -------------------------------------------------------------------------------- 1 | @REM copy .env.example as .env 2 | CALL copy .env.example .env 3 | 4 | @REM install PHP packges 5 | CALL composer install 6 | 7 | @REM laravel app key 8 | CALL php artisan key:generate 9 | 10 | @REM link storage folder 11 | CALL php artisan storage:link 12 | 13 | @REM install NPM packges 14 | CALL pnpm i 15 | 16 | @REM run docker images 17 | CALL docker compose -f docker-compose-dev.yml up -d 18 | 19 | @REM setup project 20 | CALL docker exec ls_dev_app composer install 21 | CALL docker exec ls_dev_app php artisan key:generate 22 | CALL docker exec ls_dev_app php artisan migrate:fresh --seed 23 | -------------------------------------------------------------------------------- /.scripts/local/install.sh: -------------------------------------------------------------------------------- 1 | # copy .env.example as .env 2 | cp .env.example .env 3 | 4 | # install PHP packges 5 | composer install 6 | 7 | # laravel app key 8 | php artisan key:generate 9 | 10 | # link storage folder 11 | php artisan storage:link 12 | 13 | # install NPM packges 14 | pnpm i 15 | 16 | # run docker images 17 | docker compose -f docker-compose-dev.yml up -d 18 | 19 | # setup project 20 | docker exec ls_dev_app composer install 21 | docker exec ls_dev_app php artisan key:generate 22 | docker exec ls_dev_app php artisan migrate:fresh --seed 23 | -------------------------------------------------------------------------------- /.styleci.yml: -------------------------------------------------------------------------------- 1 | php: 2 | preset: laravel 3 | disabled: 4 | - no_unused_imports 5 | finder: 6 | not-name: 7 | - index.php 8 | css: true 9 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846 3 | "recommendations": [ 4 | "mikestead.dotenv", 5 | "ryannaddy.laravel-artisan", 6 | "shufo.vscode-blade-formatter", 7 | "onecentlin.laravel-blade", 8 | "codingyu.laravel-goto-view", 9 | "amiralizadeh9480.laravel-extra-intellisense", 10 | "naoray.laravel-goto-components", 11 | "pgl.laravel-jump-controller", 12 | "editorconfig.editorconfig", 13 | "davidanson.vscode-markdownlint" 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "workbench.colorCustomizations": { 3 | "activityBar.activeBackground": "#6c95f9", 4 | "activityBar.background": "#6c95f9", 5 | "activityBar.foreground": "#15202b", 6 | "activityBar.inactiveForeground": "#15202b99", 7 | "activityBarBadge.background": "#b8083b", 8 | "activityBarBadge.foreground": "#e7e7e7", 9 | "commandCenter.border": "#e7e7e799", 10 | "sash.hoverBorder": "#6c95f9", 11 | "statusBar.background": "#3b71f7", 12 | "statusBar.foreground": "#e7e7e7", 13 | "statusBarItem.hoverBackground": "#6c95f9", 14 | "statusBarItem.remoteBackground": "#3b71f7", 15 | "statusBarItem.remoteForeground": "#e7e7e7", 16 | "titleBar.activeBackground": "#3b71f7", 17 | "titleBar.activeForeground": "#e7e7e7", 18 | "titleBar.inactiveBackground": "#3b71f799", 19 | "titleBar.inactiveForeground": "#e7e7e799" 20 | }, 21 | "peacock.color": "#3b71f7", 22 | "css.customData": [".vscode/tailwind.json"], 23 | "scss.validate": false, 24 | } 25 | -------------------------------------------------------------------------------- /.vscode/tailwind.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1.1, 3 | "atDirectives": [ 4 | { 5 | "name": "@tailwind", 6 | "description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.", 7 | "references": [ 8 | { 9 | "name": "Tailwind Documentation", 10 | "url": "https://tailwindcss.com/docs/functions-and-directives#tailwind" 11 | } 12 | ] 13 | }, 14 | { 15 | "name": "@apply", 16 | "description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.", 17 | "references": [ 18 | { 19 | "name": "Tailwind Documentation", 20 | "url": "https://tailwindcss.com/docs/functions-and-directives#apply" 21 | } 22 | ] 23 | }, 24 | { 25 | "name": "@responsive", 26 | "description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n", 27 | "references": [ 28 | { 29 | "name": "Tailwind Documentation", 30 | "url": "https://tailwindcss.com/docs/functions-and-directives#responsive" 31 | } 32 | ] 33 | }, 34 | { 35 | "name": "@screen", 36 | "description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n", 37 | "references": [ 38 | { 39 | "name": "Tailwind Documentation", 40 | "url": "https://tailwindcss.com/docs/functions-and-directives#screen" 41 | } 42 | ] 43 | }, 44 | { 45 | "name": "@variants", 46 | "description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n", 47 | "references": [ 48 | { 49 | "name": "Tailwind Documentation", 50 | "url": "https://tailwindcss.com/docs/functions-and-directives#variants" 51 | } 52 | ] 53 | } 54 | ] 55 | } 56 | -------------------------------------------------------------------------------- /.vscode/terminals.json: -------------------------------------------------------------------------------- 1 | { 2 | "autorun": true, 3 | "autorun_delay": 2000, 4 | "auto_kill": true, 5 | "terminals": [ 6 | { 7 | "name": "Backend Server Terminal", 8 | "description": "Running banckend server", 9 | "focus": false, 10 | "execute": true, 11 | "recycle": true, 12 | "commands": ["php artisan serve"], 13 | "color": "terminal.ansiGreen" 14 | }, 15 | 16 | { 17 | "name": "ViteJs Terminal", 18 | "description": "Running vite server", 19 | "focus": true, 20 | "execute": true, 21 | "recycle": true, 22 | "commands": ["npm run dev"], 23 | "color": "terminal.ansiRed" 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 laravel-ready 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # laravel-starter 2 | 3 | [](https://github.com/laravel-ready/laravel-starter) 4 | 5 | Ready to use empty laravel starter project template. It has a simple and clean project structure with many features for development and debugging. When you decide to won't use some tools you can remove them quickly, then you can continue to develop. 6 | 7 | ## Installation 8 | 9 | Create the project with composer: 10 | 11 | ```bash 12 | composer create-project laravel-ready/laravel-starter {project_name} --stability=dev 13 | ``` 14 | 15 | > [!WARNING] 16 | > After installation, if you are using VS Code editor CLI, you need to restart with the `F1` (or `Command` + `P`, or `fn` + `F1`) > `Reload Window` command. This is required for indexing and plugin activation. 17 | 18 | ## To sync with template repo 19 | 20 | Run this command 21 | 22 | ``` 23 | git remote add template https://github.com/laravel-ready/laravel-starter 24 | git fetch --all 25 | git merge template/main --allow-unrelated-histories 26 | ``` 27 | 28 | ## Documentation 29 | 30 | You can find the documentation **[here](./DOCS.md).** 31 | 32 | Photo by Sebastian Svenson on Unsplash 33 | -------------------------------------------------------------------------------- /app/Actions/Fortify/CreateNewUser.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'max:255'], 24 | 'email' => [ 25 | 'required', 26 | 'string', 27 | 'email', 28 | 'max:255', 29 | Rule::unique(User::class), 30 | ], 31 | 'password' => $this->passwordRules(), 32 | ])->validate(); 33 | 34 | return User::create([ 35 | 'name' => $input['name'], 36 | 'email' => $input['email'], 37 | 'password' => Hash::make($input['password']), 38 | ]); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /app/Actions/Fortify/PasswordValidationRules.php: -------------------------------------------------------------------------------- 1 | $this->passwordRules(), 23 | ])->validate(); 24 | 25 | $user->forceFill([ 26 | 'password' => Hash::make($input['password']), 27 | ])->save(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserPassword.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'current_password:web'], 23 | 'password' => $this->passwordRules(), 24 | ], [ 25 | 'current_password.current_password' => __('The provided password does not match your current password.'), 26 | ])->validateWithBag('updatePassword'); 27 | 28 | $user->forceFill([ 29 | 'password' => Hash::make($input['password']), 30 | ])->save(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Actions/Fortify/UpdateUserProfileInformation.php: -------------------------------------------------------------------------------- 1 | ['required', 'string', 'max:255'], 22 | 23 | 'email' => [ 24 | 'required', 25 | 'string', 26 | 'email', 27 | 'max:255', 28 | Rule::unique('users')->ignore($user->id), 29 | ], 30 | ])->validateWithBag('updateProfileInformation'); 31 | 32 | if ($input['email'] !== $user->email && 33 | $user instanceof MustVerifyEmail) { 34 | $this->updateVerifiedUser($user, $input); 35 | } else { 36 | $user->forceFill([ 37 | 'name' => $input['name'], 38 | 'email' => $input['email'], 39 | ])->save(); 40 | } 41 | } 42 | 43 | /** 44 | * Update the given verified user's profile information. 45 | * 46 | * @param mixed $user 47 | * @return void 48 | */ 49 | protected function updateVerifiedUser($user, array $input) 50 | { 51 | $user->forceFill([ 52 | 'name' => $input['name'], 53 | 'email' => $input['email'], 54 | 'email_verified_at' => null, 55 | ])->save(); 56 | 57 | $user->sendEmailVerificationNotification(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /app/Console/Commands/LarastanScanCommand.php: -------------------------------------------------------------------------------- 1 | info('Running `./vendor/bin/phpstan analyse`...'); 30 | 31 | $output = shell_exec(base_path('vendor/bin/phpstan analyse --memory-limit=2G')); 32 | 33 | $this->info($output); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Console/Commands/PintFixCommand.php: -------------------------------------------------------------------------------- 1 | info('Running `./vendor/bin/pint`...'); 30 | 31 | $output = shell_exec(base_path('vendor/bin/pint')); 32 | 33 | $this->info($output); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 18 | } 19 | 20 | /** 21 | * Register the commands for the application. 22 | * 23 | * @return void 24 | */ 25 | protected function commands() 26 | { 27 | $this->load(__DIR__.'/Commands'); 28 | 29 | require base_path('routes/console.php'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | , \Psr\Log\LogLevel::*> 14 | */ 15 | protected $levels = [ 16 | // 17 | ]; 18 | 19 | /** 20 | * A list of the exception types that are not reported. 21 | * 22 | * @var array> 23 | */ 24 | protected $dontReport = [ 25 | // 26 | ]; 27 | 28 | /** 29 | * A list of the inputs that are never flashed to the session on validation exceptions. 30 | * 31 | * @var array 32 | */ 33 | protected $dontFlash = [ 34 | 'current_password', 35 | 'password', 36 | 'password_confirmation', 37 | ]; 38 | 39 | /** 40 | * Register the exception handling callbacks for the application. 41 | * 42 | * @return void 43 | */ 44 | public function register() 45 | { 46 | $this->reportable(function (Throwable $e) { 47 | // 48 | }); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /app/Http/Controllers/Api/ApiController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('web.pages.home.index'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | protected $middleware = [ 17 | // \App\Http\Middleware\TrustHosts::class, 18 | \App\Http\Middleware\TrustProxies::class, 19 | \Illuminate\Http\Middleware\HandleCors::class, 20 | \App\Http\Middleware\PreventRequestsDuringMaintenance::class, 21 | \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, 22 | \App\Http\Middleware\TrimStrings::class, 23 | \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 24 | ]; 25 | 26 | /** 27 | * The application's route middleware groups. 28 | * 29 | * @var array> 30 | */ 31 | protected $middlewareGroups = [ 32 | 'web' => [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 37 | \App\Http\Middleware\VerifyCsrfToken::class, 38 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 39 | ], 40 | 41 | 'api' => [ 42 | // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, 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 | 'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 66 | ]; 67 | } 68 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 25 | return redirect(RouteServiceProvider::HOME); 26 | } 27 | } 28 | 29 | return $next($request); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts() 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Requests/Api/ApiFormRequest.php: -------------------------------------------------------------------------------- 1 | errors(); 24 | 25 | $response = response()->json([ 26 | 'message' => 'Invalid data send', 27 | 'details' => $errors->messages(), 28 | ], 422); 29 | 30 | throw new HttpResponseException($response); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Http/Requests/Api/Auth/UserLoginRequest.php: -------------------------------------------------------------------------------- 1 | 'required|email', 28 | 'password' => 'required', 29 | ]; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/Http/Requests/Api/Auth/UserRegisterRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string|max:255', 28 | 'email' => 'required|email', 29 | 'password' => 'required', 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | 51 | */ 52 | protected $fillable = [ 53 | 'name', 54 | 'email', 55 | // 'username', 56 | 'password', 57 | ]; 58 | 59 | /** 60 | * The attributes that should be hidden for serialization. 61 | * 62 | * @var array 63 | */ 64 | protected $hidden = [ 65 | 'password', 66 | 'remember_token', 67 | ]; 68 | 69 | /** 70 | * The attributes that should be cast. 71 | * 72 | * @var array 73 | */ 74 | protected $casts = [ 75 | 'email_verified_at' => 'datetime', 76 | ]; 77 | } 78 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->isLocal() && class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) { 17 | $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); 18 | } 19 | } 20 | 21 | /** 22 | * Bootstrap any application services. 23 | * 24 | * @return void 25 | */ 26 | public function boot() 27 | { 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $policies = [ 15 | // 'App\Models\Model' => 'App\Policies\ModelPolicy', 16 | ]; 17 | 18 | /** 19 | * Register any authentication / authorization services. 20 | * 21 | * @return void 22 | */ 23 | public function boot() 24 | { 25 | $this->registerPolicies(); 26 | 27 | // 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 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 | /** 34 | * Determine if events and listeners should be automatically discovered. 35 | * 36 | * @return bool 37 | */ 38 | public function shouldDiscoverEvents() 39 | { 40 | return false; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Providers/Filament/AdminPanelProvider.php: -------------------------------------------------------------------------------- 1 | default() 29 | ->id('admin') 30 | ->path('admin') 31 | ->login() 32 | ->colors([ 33 | 'primary' => Color::Amber, 34 | ]) 35 | ->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources') 36 | ->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages') 37 | ->pages([ 38 | Pages\Dashboard::class, 39 | ]) 40 | ->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets') 41 | ->plugins([ 42 | FilamentDeveloperLoginsPlugin::make() 43 | ->enabled(app()->environment('local')) 44 | ->redirectTo(fn() => route('filament.admin.pages.dashboard')) 45 | ->switchable(false) 46 | ->column('email') 47 | ->users(collect((new DefaultUserSeeder)->defaultUsers)->map(function ($item) { 48 | return [ 49 | $item['name'] => $item['email'], 50 | ]; 51 | })->flatMap(fn($item) => $item)->toArray()) 52 | ]) 53 | ->widgets([ 54 | Widgets\AccountWidget::class, 55 | Widgets\FilamentInfoWidget::class, 56 | ]) 57 | ->middleware([ 58 | EncryptCookies::class, 59 | AddQueuedCookiesToResponse::class, 60 | StartSession::class, 61 | AuthenticateSession::class, 62 | ShareErrorsFromSession::class, 63 | VerifyCsrfToken::class, 64 | SubstituteBindings::class, 65 | DisableBladeIconComponents::class, 66 | DispatchServingFilamentEvent::class, 67 | ]) 68 | ->authMiddleware([ 69 | Authenticate::class, 70 | ]); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /app/Providers/FortifyServiceProvider.php: -------------------------------------------------------------------------------- 1 | email; 41 | 42 | return Limit::perMinute(5)->by($email.$request->ip()); 43 | }); 44 | 45 | RateLimiter::for('two-factor', function (Request $request) { 46 | return Limit::perMinute(5)->by($request->session()->get('login.id')); 47 | }); 48 | 49 | $theme = 'starter'; 50 | 51 | Fortify::loginView(fn () => view("fortify-ui::{$theme}.pages.login")); 52 | Fortify::registerView(fn () => view("fortify-ui::{$theme}.pages.register")); 53 | Fortify::verifyEmailView(fn () => view("fortify-ui::{$theme}.pages.verification.notice")); 54 | Fortify::confirmPasswordView(fn () => view("fortify-ui::{$theme}.pages.confirm-password")); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 30 | 31 | $this->routes(function () { 32 | Route::middleware('api') 33 | ->prefix('api/v1') 34 | ->group(base_path('routes/api-auth.php')); 35 | 36 | Route::middleware(['api', 'auth:sanctum']) 37 | ->prefix('api/v1') 38 | ->group(base_path('routes/api.php')); 39 | 40 | Route::middleware('web') 41 | ->name('web.') 42 | ->group(base_path('routes/web.php')); 43 | }); 44 | } 45 | 46 | /** 47 | * Configure the rate limiters for the application. 48 | * 49 | * @return void 50 | */ 51 | protected function configureRateLimiting() 52 | { 53 | RateLimiter::for('api', function (Request $request) { 54 | return Limit::perMinute(60)->by((string) $request->user()?->id ?: $request->ip() ?: 'unknown'); 55 | }); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /app/Providers/SanctumServiceProvider.php: -------------------------------------------------------------------------------- 1 | preventDatabaseWrite(...)); 13 | } 14 | 15 | /** 16 | * Sanctum updates a "last_used_at" column on every incoming request. 17 | * This could possibly lead to deadlocks due to high concurrency. 18 | * We don't need this information, so we're gonna ignore it. 19 | */ 20 | private function preventDatabaseWrite(PersonalAccessToken $model) 21 | { 22 | return ! $model->isDirty('last_used_at'); // returning "false" will cancel the "UPDATE" operation 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /app/Traits/EnumToArray.php: -------------------------------------------------------------------------------- 1 | getClientOriginalExtension(); 20 | $fullFilePath = "{$folder}/{$fileName}.{$ext}"; 21 | $fileContent = file_get_contents($file->getRealPath()); 22 | 23 | if (Storage::disk($disk)->exists($fullFilePath)) { 24 | Storage::disk($disk)->delete($fullFilePath); 25 | } 26 | 27 | return Storage::disk($disk)->put($fullFilePath, $fileContent) ? $fullFilePath : false; 28 | } 29 | 30 | /** 31 | * Get path of local path 32 | * 33 | * @param object $filePath 34 | */ 35 | public function getStoragePath(string $filePath, string $disk = 'public'): bool|string 36 | { 37 | // get storage path 38 | return Storage::disk($disk)->path($filePath); 39 | } 40 | 41 | /** 42 | * Move a file on disk 43 | * 44 | * @param object $file 45 | * @param string $path 46 | * @param string $fileName 47 | */ 48 | public function moveFileOnDisk(string $filePath, string $newPath, string $disk = 'public'): bool|string 49 | { 50 | if (Storage::disk($disk)->exists($filePath)) { 51 | return Storage::disk($disk)->move($filePath, $newPath) ? $newPath : false; 52 | } 53 | 54 | return false; 55 | } 56 | 57 | /** 58 | * Delete a file from the storage. 59 | */ 60 | public function deleteFileFromDisk(string $filePath, string $disk = 'public'): bool 61 | { 62 | if (Storage::disk($disk)->exists($filePath)) { 63 | return Storage::disk($disk)->delete($filePath); 64 | } 65 | 66 | return true; 67 | } 68 | 69 | /** 70 | * Get a file from the storage. 71 | */ 72 | public function getFileFromDisk(string $filePath, string $disk = 'public'): string|bool 73 | { 74 | if (Storage::disk($disk)->exists($filePath)) { 75 | return Storage::disk($disk)->get($filePath); 76 | } 77 | 78 | return false; 79 | } 80 | 81 | /** 82 | * Check file exists in the storage. 83 | * 84 | * @return string|bool 85 | */ 86 | public function fileExists(string $filePath, string $disk = 'public'): bool 87 | { 88 | return Storage::disk($disk)->exists($filePath); 89 | } 90 | 91 | /** 92 | * Download a file from the storage. 93 | */ 94 | public function downloadFileFromDisk(string $filePath, string $fileName, string $disk = 'public'): StreamedResponse 95 | { 96 | if (Storage::disk($disk)->exists($filePath)) { 97 | $headers = [ 98 | 'Content-Type' => 'application/zip, application/octet-stream', 99 | ]; 100 | 101 | return Storage::disk($disk)->download($filePath, $fileName, $headers); 102 | } 103 | 104 | // TODO: add exception 105 | } 106 | } 107 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /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": "laravel-ready/laravel-starter", 3 | "type": "project", 4 | "description": "Batteries included ready to use empty laravel starter project template.", 5 | "keywords": [ 6 | "framework", 7 | "laravel", 8 | "laravel-starter", 9 | "laravel-ready", 10 | "starter-template", 11 | "starter-kit", 12 | "laravel-starter-kit", 13 | "laravel-starter-template", 14 | "laravel-ready-starter", 15 | "tailwindcss", 16 | "bootstrap" 17 | ], 18 | "license": "MIT", 19 | "require": { 20 | "php": "^8.2", 21 | "dutchcodingcompany/filament-developer-logins": "^1.2", 22 | "fakerphp/faker": "^1.23", 23 | "filament/filament": "v3.2.95", 24 | "guzzlehttp/guzzle": "^7.9.1", 25 | "laravel-ready/fortify-ui": "v2.0.0", 26 | "laravel-ready/hasin": "v3.0.0", 27 | "laravel-ready/model-support": "v2.0.0", 28 | "laravel-ready/readable-numbers": "v2.0.0", 29 | "laravel-ready/ultimate-support": "v2.0.0", 30 | "laravel/fortify": "v1.21.5", 31 | "laravel/framework": "v11.8", 32 | "laravel/sanctum": "v4.0.2", 33 | "laravel/tinker": "v2.9.0", 34 | "opcodesio/log-viewer": "v3.10.1", 35 | "phpunit/phpunit": "^11.3", 36 | "spatie/laravel-data": "^4.7.1", 37 | "spatie/laravel-ignition": "^2.8.0", 38 | "spatie/once": "^3.1.1" 39 | }, 40 | "require-dev": { 41 | "barryvdh/laravel-debugbar": "v3.13.5", 42 | "barryvdh/laravel-ide-helper": "v3.1.0", 43 | "doctrine/dbal": "^3.8.6", 44 | "dragon-code/pretty-routes": "^3.4.0", 45 | "itsgoingd/clockwork": "v5.2.2", 46 | "larastan/larastan": "v2.9.8", 47 | "laravel/pint": "v1.16.2", 48 | "laravel/sail": "v1.30.2", 49 | "mockery/mockery": "^1.6.12", 50 | "nunomaduro/collision": "v8.3.0", 51 | "spatie/laravel-ray": "^1.37.1" 52 | }, 53 | "autoload": { 54 | "psr-4": { 55 | "App\\": "app/", 56 | "Database\\Factories\\": "database/factories/", 57 | "Database\\Seeders\\": "database/seeders/" 58 | } 59 | }, 60 | "autoload-dev": { 61 | "psr-4": { 62 | "Tests\\": "tests/" 63 | } 64 | }, 65 | "scripts": { 66 | "post-autoload-dump": [ 67 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 68 | "@php artisan package:discover --ansi", 69 | "@php artisan filament:upgrade", 70 | "@php artisan vendor:publish --tag=log-viewer-assets --force" 71 | ], 72 | "post-update-cmd": [ 73 | "@php artisan vendor:publish --tag=laravel-assets --ansi --force", 74 | "@php artisan filament:upgrade" 75 | ], 76 | "post-root-package-install": [ 77 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 78 | ], 79 | "post-create-project-cmd": [ 80 | "@php artisan key:generate --ansi", 81 | "pnpm i" 82 | ] 83 | }, 84 | "extra": { 85 | "laravel": { 86 | "dont-discover": [] 87 | } 88 | }, 89 | "config": { 90 | "optimize-autoloader": true, 91 | "preferred-install": "dist", 92 | "sort-packages": true, 93 | "allow-plugins": { 94 | "pestphp/pest-plugin": true 95 | } 96 | }, 97 | "minimum-stability": "dev", 98 | "prefer-stable": true 99 | } 100 | -------------------------------------------------------------------------------- /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 | 'client_options' => [ 43 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html 44 | ], 45 | ], 46 | 47 | 'ably' => [ 48 | 'driver' => 'ably', 49 | 'key' => env('ABLY_KEY'), 50 | ], 51 | 52 | 'redis' => [ 53 | 'driver' => 'redis', 54 | 'connection' => 'default', 55 | ], 56 | 57 | 'log' => [ 58 | 'driver' => 'log', 59 | ], 60 | 61 | 'null' => [ 62 | 'driver' => 'null', 63 | ], 64 | 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 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/data.php: -------------------------------------------------------------------------------- 1 | DATE_ATOM, 8 | 9 | /* 10 | * Global transformers will take complex types and transform them into simple 11 | * types. 12 | */ 13 | 'transformers' => [ 14 | DateTimeInterface::class => \Spatie\LaravelData\Transformers\DateTimeInterfaceTransformer::class, 15 | \Illuminate\Contracts\Support\Arrayable::class => \Spatie\LaravelData\Transformers\ArrayableTransformer::class, 16 | // BackedEnum::class => Spatie\LaravelData\Transformers\EnumTransformer::class, 17 | ], 18 | 19 | /* 20 | * Global casts will cast values into complex types when creating a data 21 | * object from simple types. 22 | */ 23 | 'casts' => [ 24 | DateTimeInterface::class => Spatie\LaravelData\Casts\DateTimeInterfaceCast::class, 25 | // BackedEnum::class => Spatie\LaravelData\Casts\EnumCast::class, 26 | ], 27 | 28 | /* 29 | * Rule inferrers can be configured here. They will automatically add 30 | * validation rules to properties of a data object based upon 31 | * the type of the property. 32 | */ 33 | 'rule_inferrers' => [ 34 | Spatie\LaravelData\RuleInferrers\BuiltInTypesRuleInferrer::class, 35 | Spatie\LaravelData\RuleInferrers\AttributesRuleInferrer::class, 36 | Spatie\LaravelData\RuleInferrers\NullableRuleInferrer::class, 37 | Spatie\LaravelData\RuleInferrers\RequiredRuleInferrer::class, 38 | ], 39 | ]; 40 | -------------------------------------------------------------------------------- /config/filament.php: -------------------------------------------------------------------------------- 1 | [ 18 | 19 | // 'echo' => [ 20 | // 'broadcaster' => 'pusher', 21 | // 'key' => env('VITE_PUSHER_APP_KEY'), 22 | // 'cluster' => env('VITE_PUSHER_APP_CLUSTER'), 23 | // 'wsHost' => env('VITE_PUSHER_HOST'), 24 | // 'wsPort' => env('VITE_PUSHER_PORT'), 25 | // 'wssPort' => env('VITE_PUSHER_PORT'), 26 | // 'authEndpoint' => '/api/v1/broadcasting/auth', 27 | // 'disableStats' => true, 28 | // 'encrypted' => true, 29 | // ], 30 | 31 | ], 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Default Filesystem Disk 36 | |-------------------------------------------------------------------------- 37 | | 38 | | This is the storage disk Filament will use to put media. You may use any 39 | | of the disks defined in the `config/filesystems.php`. 40 | | 41 | */ 42 | 43 | 'default_filesystem_disk' => env('FILAMENT_FILESYSTEM_DISK', 'public'), 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | Assets Path 48 | |-------------------------------------------------------------------------- 49 | | 50 | | This is the directory where Filament's assets will be published to. It 51 | | is relative to the `public` directory of your Laravel application. 52 | | 53 | | After changing the path, you should run `php artisan filament:assets`. 54 | | 55 | */ 56 | 57 | 'assets_path' => null, 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | Livewire Loading Delay 62 | |-------------------------------------------------------------------------- 63 | | 64 | | This sets the delay before loading indicators appear. 65 | | 66 | | Setting this to 'none' makes indicators appear immediately, which can be 67 | | desirable for high-latency connections. Setting it to 'default' applies 68 | | Livewire's standard 200ms delay. 69 | | 70 | */ 71 | 72 | 'livewire_loading_delay' => 'default', 73 | 74 | ]; 75 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been set up for each driver as an example of the required values. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | 'throw' => false, 37 | ], 38 | 39 | 'public' => [ 40 | 'driver' => 'local', 41 | 'root' => storage_path('app/public'), 42 | 'url' => env('APP_URL').'/storage', 43 | 'visibility' => 'public', 44 | 'throw' => false, 45 | ], 46 | 47 | 's3' => [ 48 | 'driver' => 's3', 49 | 'key' => env('AWS_ACCESS_KEY_ID'), 50 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 51 | 'region' => env('AWS_DEFAULT_REGION'), 52 | 'bucket' => env('AWS_BUCKET'), 53 | 'url' => env('AWS_URL'), 54 | 'endpoint' => env('AWS_ENDPOINT'), 55 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 56 | 'throw' => false, 57 | ], 58 | 59 | ], 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Symbolic Links 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Here you may configure the symbolic links that will be created when the 67 | | `storage:link` Artisan command is executed. The array keys should be 68 | | the locations of the links and the values should be their targets. 69 | | 70 | */ 71 | 72 | 'links' => [ 73 | public_path('storage') => storage_path('app/public'), 74 | ], 75 | 76 | ]; 77 | -------------------------------------------------------------------------------- /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' => 65536, 48 | 'threads' => 1, 49 | 'time' => 4, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /config/log-viewer.php: -------------------------------------------------------------------------------- 1 | 'logs', 8 | 9 | /** 10 | * When set, displays a link to easily get back to this URL. 11 | * Set to `null` to hide this link. 12 | */ 13 | 'back_to_system_url' => config('app.url', null), 14 | 15 | /** 16 | * Optional label to display for the above URL. Defaults to "Back to {{ app.name }}" 17 | */ 18 | 'back_to_system_label' => null, 19 | 20 | /** 21 | * Log Viewer route middleware. 22 | * The middleware should enable session and cookies support in order for the Log Viewer to work. 23 | * The 'web' middleware will be applied automatically if empty. 24 | */ 25 | 'middleware' => ['web', 'auth'], 26 | 27 | /** 28 | * Include file patterns 29 | */ 30 | 'include_files' => ['*.log'], 31 | 32 | /** 33 | * Exclude file patterns. This will take precedence 34 | */ 35 | 'exclude_files' => [], 36 | 37 | /** 38 | * Shorter stack trace filters. Any lines containing any of the below strings will be excluded from the full log. 39 | * Only active when the setting is on, which can be toggled in the user interface. 40 | */ 41 | 'shorter_stack_trace_excludes' => [ 42 | '/vendor/symfony/', 43 | '/vendor/laravel/framework/', 44 | '/vendor/barryvdh/laravel-debugbar/', 45 | ], 46 | ]; 47 | -------------------------------------------------------------------------------- /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 | 'after_commit' => false, 43 | ], 44 | 45 | 'beanstalkd' => [ 46 | 'driver' => 'beanstalkd', 47 | 'host' => 'localhost', 48 | 'queue' => 'default', 49 | 'retry_after' => 90, 50 | 'block_for' => 0, 51 | 'after_commit' => false, 52 | ], 53 | 54 | 'sqs' => [ 55 | 'driver' => 'sqs', 56 | 'key' => env('AWS_ACCESS_KEY_ID'), 57 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 58 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 59 | 'queue' => env('SQS_QUEUE', 'default'), 60 | 'suffix' => env('SQS_SUFFIX'), 61 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 62 | 'after_commit' => false, 63 | ], 64 | 65 | 'redis' => [ 66 | 'driver' => 'redis', 67 | 'connection' => 'default', 68 | 'queue' => env('REDIS_QUEUE', 'default'), 69 | 'retry_after' => 90, 70 | 'block_for' => null, 71 | 'after_commit' => false, 72 | ], 73 | 74 | ], 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Failed Queue Jobs 79 | |-------------------------------------------------------------------------- 80 | | 81 | | These options configure the behavior of failed queue job logging so you 82 | | can control which database and table are used to store the jobs that 83 | | have failed. You may change them to any database / table you wish. 84 | | 85 | */ 86 | 87 | 'failed' => [ 88 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 89 | 'database' => env('DB_CONNECTION', 'mysql'), 90 | 'table' => 'failed_jobs', 91 | ], 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- 1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( 19 | '%s%s', 20 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', 21 | Sanctum::currentApplicationUrlWithPort() 22 | ))), 23 | 24 | /* 25 | |-------------------------------------------------------------------------- 26 | | Sanctum Guards 27 | |-------------------------------------------------------------------------- 28 | | 29 | | This array contains the authentication guards that will be checked when 30 | | Sanctum is trying to authenticate a request. If none of these guards 31 | | are able to authenticate the request, Sanctum will use the bearer 32 | | token that's present on an incoming request for authentication. 33 | | 34 | */ 35 | 36 | 'guard' => ['web'], 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Expiration Minutes 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This value controls the number of minutes until an issued token will be 44 | | considered expired. If this value is null, personal access tokens do 45 | | not expire. This won't tweak the lifetime of first-party sessions. 46 | | 47 | */ 48 | 49 | 'expiration' => null, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Sanctum Middleware 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When authenticating your first-party SPA with Sanctum you may need to 57 | | customize some of the middleware Sanctum uses while processing the 58 | | request. You may change the middleware listed below as required. 59 | | 60 | */ 61 | 62 | 'middleware' => [ 63 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 64 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | 'scheme' => 'https', 22 | ], 23 | 24 | 'postmark' => [ 25 | 'token' => env('POSTMARK_TOKEN'), 26 | ], 27 | 28 | 'ses' => [ 29 | 'key' => env('AWS_ACCESS_KEY_ID'), 30 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 31 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 32 | ], 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /database/factories/UserFactory.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | class UserFactory extends Factory 12 | { 13 | /** 14 | * Define the model's default state. 15 | * 16 | * @return array 17 | */ 18 | public function definition() 19 | { 20 | return [ 21 | 'name' => $this->faker->name(), 22 | 'email' => $this->faker->unique()->safeEmail(), 23 | 'email_verified_at' => now(), 24 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 25 | 'remember_token' => Str::random(10), 26 | ]; 27 | } 28 | 29 | /** 30 | * Indicate that the model's email address should be unverified. 31 | * 32 | * @return static 33 | */ 34 | public function unverified() 35 | { 36 | return $this->state(function (array $attributes) { 37 | return [ 38 | 'email_verified_at' => null, 39 | ]; 40 | }); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | 19 | $table->string('name'); 20 | $table->string('email')->unique(); 21 | // $table->string('username', 50)->nullable()->unique(); 22 | $table->timestamp('email_verified_at')->nullable(); 23 | $table->string('password'); 24 | $table->rememberToken(); 25 | 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('users'); 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /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') 19 | ->after('password') 20 | ->nullable(); 21 | 22 | $table->text('two_factor_recovery_codes') 23 | ->after('two_factor_secret') 24 | ->nullable(); 25 | 26 | if (Fortify::confirmsTwoFactorAuthentication()) { 27 | $table->timestamp('two_factor_confirmed_at') 28 | ->after('two_factor_recovery_codes') 29 | ->nullable(); 30 | } 31 | }); 32 | } 33 | 34 | /** 35 | * Reverse the migrations. 36 | * 37 | * @return void 38 | */ 39 | public function down() 40 | { 41 | Schema::table('users', function (Blueprint $table) { 42 | $table->dropColumn(array_merge([ 43 | 'two_factor_secret', 44 | 'two_factor_recovery_codes', 45 | ], Fortify::confirmsTwoFactorAuthentication() ? [ 46 | 'two_factor_confirmed_at', 47 | ] : [])); 48 | }); 49 | } 50 | }; 51 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | 19 | $table->string('uuid')->unique(); 20 | $table->text('connection'); 21 | $table->text('queue'); 22 | $table->longText('payload'); 23 | $table->longText('exception'); 24 | 25 | $table->timestamp('failed_at')->useCurrent(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('failed_jobs'); 37 | } 38 | }; 39 | -------------------------------------------------------------------------------- /database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | 19 | $table->morphs('tokenable'); 20 | $table->string('name'); 21 | $table->string('token', 64)->unique(); 22 | $table->text('abilities')->nullable(); 23 | $table->timestamp('expires_at')->nullable(); 24 | $table->timestamp('last_used_at')->nullable(); 25 | 26 | $table->timestamps(); 27 | }); 28 | } 29 | 30 | /** 31 | * Reverse the migrations. 32 | * 33 | * @return void 34 | */ 35 | public function down() 36 | { 37 | Schema::dropIfExists('personal_access_tokens'); 38 | } 39 | }; 40 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | container->isProduction()) { 15 | $this->call([DevSeeder::class]); 16 | } else { 17 | $this->call([ProdSeeder::class]); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /database/seeders/DevSeeder.php: -------------------------------------------------------------------------------- 1 | call([ 18 | // user 19 | User\DefaultUserSeeder::class, 20 | User\UserSeeder::class, 21 | ]); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /database/seeders/Local/User/DefaultUserSeeder.php: -------------------------------------------------------------------------------- 1 | 'super_admin@example.com', 14 | 'name' => 'Super Admin', 15 | // 'username' => 'superAdmin', 16 | ], 17 | [ 18 | 'email' => 'admin@example.com', 19 | 'name' => 'Admin', 20 | // 'username' => 'admin', 21 | ], 22 | [ 23 | 'email' => 'user@example.com', 24 | 'name' => 'User Muser', 25 | // 'username' => 'userMuser', 26 | ], 27 | ]; 28 | 29 | /** 30 | * Run the database seeds. 31 | */ 32 | public function run(): void 33 | { 34 | foreach ($this->defaultUsers as $user) { 35 | if (User::where('email', $user['email'])->count() === 0) { 36 | User::create([ 37 | 'email' => $user['email'], 38 | 'name' => $user['name'], 39 | 'email_verified_at' => now(), 40 | // 'username' => $user['username'], 41 | 'password' => Hash::make($user['email']), 42 | ]); 43 | } 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /database/seeders/Local/User/UserSeeder.php: -------------------------------------------------------------------------------- 1 | count(10)->create(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /database/seeders/ProdSeeder.php: -------------------------------------------------------------------------------- 1 | call([ 17 | // DefaultUserSeeder::class, 18 | ]); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /docker-compose-dev.yml: -------------------------------------------------------------------------------- 1 | # Example Dev Environment Setup 2 | 3 | name: ls_dev 4 | 5 | services: 6 | # Laravel App 7 | ls_dev_app: 8 | build: 9 | context: . 10 | dockerfile: ./.docker/local/Dockerfile 11 | container_name: ls_dev_app 12 | restart: on-failure 13 | ports: 14 | - ${APP_PORT}:8080 15 | volumes: 16 | - ./:/var/www/html 17 | environment: 18 | RUN_LARAVEL_AUTOMATIONS: 'true' 19 | AUTORUN_ENABLED: 'true' 20 | AUTORUN_LARAVEL_STORAGE_LINK: 'true' 21 | SSL_MODE: 'off' 22 | PHP_POOL_NAME: 'app_pool' 23 | PHP_OPCACHE_ENABLE: '1' 24 | networks: 25 | - ls_dev_app_net 26 | - ls_dev_redis_net 27 | command: ['php', '/var/www/html/artisan', 'schedule:work'] 28 | 29 | # Database 30 | ls_dev_db: 31 | image: mysql:latest 32 | container_name: ls_dev_db 33 | restart: unless-stopped 34 | ports: 35 | - 3307:3306 36 | volumes: 37 | - ls_dev_db_volume:/var/lib/mysql 38 | environment: 39 | MYSQL_DATABASE: ${DB_DATABASE} 40 | ON_CREATE_DB: ${DB_DATABASE} 41 | MYSQL_USER: ${DB_USERNAME} 42 | MYSQL_PASSWORD: ${DB_PASSWORD} 43 | MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} 44 | networks: 45 | - ls_dev_app_net 46 | 47 | # Redis 48 | ls_dev_redis: 49 | image: redis:alpine 50 | container_name: ls_dev_redis 51 | hostname: laravel_app_x 52 | restart: always 53 | ports: 54 | - ${REDIS_PORT}:6379 55 | networks: 56 | - ls_dev_redis_net 57 | 58 | # MailHog Server 59 | ls_dev_mail_hog: 60 | image: mailhog/mailhog:latest 61 | container_name: ls_dev_mail_hog 62 | restart: unless-stopped 63 | ports: 64 | - 10001:1025 65 | - 10002:8025 66 | 67 | networks: 68 | ls_dev_app_net: 69 | driver: bridge 70 | ipam: 71 | driver: default 72 | config: 73 | - subnet: 10.20.0.0/16 74 | 75 | ls_dev_redis_net: 76 | driver: bridge 77 | ipam: 78 | driver: default 79 | config: 80 | - subnet: 10.50.0.0/16 81 | 82 | volumes: 83 | ls_dev_db_volume: 84 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | # Example Prod Environment Setup 2 | 3 | name: ls_prod 4 | 5 | services: 6 | # Laravel App 7 | ls_prod_app: 8 | build: 9 | context: . 10 | dockerfile: ./.docker/prod/Dockerfile 11 | container_name: ls_prod_app 12 | stdin_open: true 13 | tty: true 14 | restart: always 15 | ports: 16 | - ${APP_PORT}:8080 17 | volumes: 18 | - ./:/var/www/html 19 | environment: 20 | RUN_LARAVEL_AUTOMATIONS: 'false' 21 | AUTORUN_ENABLED: 'true' 22 | AUTORUN_LARAVEL_STORAGE_LINK: 'false' 23 | AUTORUN_LARAVEL_MIGRATION: 'true' 24 | SSL_MODE: 'mixed' 25 | PHP_POOL_NAME: 'app_pool' 26 | PHP_OPCACHE_ENABLE: '1' 27 | networks: 28 | - ls_prod_app_net 29 | - ls_prod_redis_net 30 | command: ['php', '/var/www/html/artisan', 'schedule:work'] 31 | 32 | # Database 33 | ls_prod_db: 34 | image: mysql:latest 35 | container_name: ls_prod_db 36 | restart: unless-stopped 37 | ports: 38 | - ${DB_PORT}:3306 39 | environment: 40 | MYSQL_DATABASE: ${DB_DATABASE} 41 | ON_CREATE_DB: ${DB_DATABASE} 42 | MYSQL_USER: ${DB_USERNAME} 43 | MYSQL_PASSWORD: ${DB_PASSWORD} 44 | MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} 45 | networks: 46 | - ls_prod_app_net 47 | 48 | # Redis 49 | ls_prod_redis: 50 | image: redis:alpine 51 | container_name: ls_prod_redis 52 | hostname: ls_prod_app 53 | restart: always 54 | ports: 55 | - ${REDIS_PORT}:6379 56 | networks: 57 | - ls_prod_redis_net 58 | 59 | networks: 60 | ls_prod_app_net: 61 | driver: bridge 62 | ipam: 63 | driver: default 64 | config: 65 | - subnet: 10.10.0.0/16 66 | 67 | ls_prod_redis_net: 68 | driver: bridge 69 | ipam: 70 | driver: default 71 | config: 72 | - subnet: 10.40.0.0/16 73 | -------------------------------------------------------------------------------- /lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'password' => 'The provided password is incorrect.', 18 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 19 | 'this_email_already_taken' => 'This email is already taken.', 20 | 'unknown_client' => 'Unknown client.', 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /lang/en/crud.php: -------------------------------------------------------------------------------- 1 | 'Listed', 6 | 'retrieved' => 'Retrieved', 7 | 'viewed' => 'Viewed', 8 | 'created' => 'Created', 9 | 'updated' => 'Updated', 10 | 'deleted' => 'Deleted', 11 | 'not_found' => 'Not found', 12 | 'could_not_deleted' => 'Could not deleted', 13 | 'could_not_updated' => 'Could not updated', 14 | 'exists' => 'Already Exists', 15 | 'invalid_file_name' => 'Invalid file name', 16 | 'error_while_uploading_file' => 'Error while uploading file', 17 | 'upload_success' => 'Upload success', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lang/tr/auth.php: -------------------------------------------------------------------------------- 1 | 'Girilmiş olan kullanıcı verileri sistemdekiler ile eşleşmemektedir.', 17 | 'password' => 'Girilen parola yanlış.', 18 | 'throttle' => 'Çok fazla oturum açma girişiminde bulundunuz. Lütfen :seconds saniye sonra tekrar deneyiniz.', 19 | 'this_email_already_taken' => 'Bu email adresi zaten alınmış.', 20 | 'unknown_client' => 'Bilinmeyen istemci.', 21 | ]; 22 | -------------------------------------------------------------------------------- /lang/tr/crud.php: -------------------------------------------------------------------------------- 1 | 'Listelendi', 6 | 'retrieved' => 'Getirildi', 7 | 'viewed' => 'Görüntülendi', 8 | 'created' => 'Oluşturuldu', 9 | 'updated' => 'Güncellendi', 10 | 'deleted' => 'Silindi', 11 | 'not_found' => 'Bulunamadı', 12 | 'could_not_deleted' => 'Silinemedi', 13 | 'could_not_updated' => 'Güncellenemedi', 14 | 'exists' => 'Zaten Var', 15 | 'invalid_file_name' => 'Geçersiz dosya adı', 16 | 'error_while_uploading_file' => 'Dosya yüklenirken bir hata meydana geldi.', 17 | 'upload_success' => 'Yükleme başarılı', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /lang/tr/pagination.php: -------------------------------------------------------------------------------- 1 | '« Önceki', 17 | 'next' => 'Sonraki »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /lang/tr/passwords.php: -------------------------------------------------------------------------------- 1 | 'Parolanız sıfırlandı!', 16 | 'sent' => 'Parola sıfırlama bağlantınız e-posta ile gönderildi!', 17 | 'throttled' => 'Lütfen tekrar denemeden önce bekleyin.', 18 | 'token' => 'Parola sıfırlama adresi/kodu geçersiz.', 19 | 'user' => 'Bu e-posta adresi ile kayıtlı bir üye bulunmuyor.', 20 | 21 | ]; 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "vite build --watch", 5 | "build": "vite build" 6 | }, 7 | "type": "module", 8 | "devDependencies": { 9 | "@popperjs/core": "^2.11.8", 10 | "@vitejs/plugin-vue": "^5.2.3", 11 | "axios": "^1.9.0", 12 | "bootstrap": "^5.3.6", 13 | "laravel-mix": "^6.0.49", 14 | "lodash": "^4.17.21", 15 | "postcss-import": "^16.1.0", 16 | "resolve-url-loader": "^5.0.0", 17 | "sass": "^1.87.0", 18 | "sass-loader": "^14.2.1", 19 | "tailwindcss": "^3.4.17", 20 | "vue": "^3.5.13" 21 | }, 22 | "dependencies": { 23 | "autoprefixer": "^10.4.21", 24 | "laravel-vite-plugin": "^1.2.0", 25 | "postcss": "^8.5.3", 26 | "vite": "^5.4.19", 27 | "vite-plugin-static-copy": "^1.0.6", 28 | "vue-loader": "^17.4.2" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- 1 | includes: 2 | - vendor/larastan/larastan/extension.neon 3 | 4 | parameters: 5 | 6 | paths: 7 | - app/ 8 | - config/ 9 | - database/ 10 | - routes/ 11 | 12 | # Level 9 is the highest level 13 | level: 5 14 | 15 | # ignoreErrors: 16 | # - '#PHPDoc tag @var#' 17 | # 18 | # excludePaths: 19 | # - ./*/*/FileToBeExcluded.php 20 | # 21 | # checkMissingIterableValueType: false 22 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ./tests/Unit 6 | 7 | 8 | ./tests/Feature 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | ./app 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /pint.json: -------------------------------------------------------------------------------- 1 | { 2 | "preset": "laravel", 3 | "rules": { 4 | "simplified_null_return": true, 5 | "braces": false, 6 | "new_with_braces": { 7 | "anonymous_class": false, 8 | "named_class": false 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; 7 | -------------------------------------------------------------------------------- /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/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/public/favicon.ico -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = $kernel->handle( 52 | $request = Request::capture() 53 | )->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /ray.php: -------------------------------------------------------------------------------- 1 | env('RAY_ENABLED', true), 10 | 11 | /* 12 | * When enabled, all cache events will automatically be sent to Ray. 13 | */ 14 | 'send_cache_to_ray' => env('SEND_CACHE_TO_RAY', false), 15 | 16 | /* 17 | * When enabled, all things passed to `dump` or `dd` 18 | * will be sent to Ray as well. 19 | */ 20 | 'send_dumps_to_ray' => env('SEND_DUMPS_TO_RAY', true), 21 | 22 | /* 23 | * When enabled all job events will automatically be sent to Ray. 24 | */ 25 | 'send_jobs_to_ray' => env('SEND_JOBS_TO_RAY', false), 26 | 27 | /* 28 | * When enabled, all things logged to the application log 29 | * will be sent to Ray as well. 30 | */ 31 | 'send_log_calls_to_ray' => env('SEND_LOG_CALLS_TO_RAY', true), 32 | 33 | /* 34 | * When enabled, all queries will automatically be sent to Ray. 35 | */ 36 | 'send_queries_to_ray' => env('SEND_QUERIES_TO_RAY', false), 37 | 38 | /** 39 | * When enabled, all duplicate queries will automatically be sent to Ray. 40 | */ 41 | 'send_duplicate_queries_to_ray' => env('SEND_DUPLICATE_QUERIES_TO_RAY', false), 42 | 43 | /* 44 | * When enabled, slow queries will automatically be sent to Ray. 45 | */ 46 | 'send_slow_queries_to_ray' => env('SEND_SLOW_QUERIES_TO_RAY', false), 47 | 48 | /* 49 | * When enabled, all requests made to this app will automatically be sent to Ray. 50 | */ 51 | 'send_requests_to_ray' => env('SEND_REQUESTS_TO_RAY', false), 52 | 53 | /** 54 | * When enabled, all Http Client requests made by this app will be automatically sent to Ray. 55 | */ 56 | 'send_http_client_requests_to_ray' => env('SEND_HTTP_CLIENT_REQUESTS_TO_RAY', false), 57 | 58 | /* 59 | * When enabled, all views that are rendered automatically be sent to Ray. 60 | */ 61 | 'send_views_to_ray' => env('SEND_VIEWS_TO_RAY', false), 62 | 63 | /* 64 | * When enabled, all exceptions will be automatically sent to Ray. 65 | */ 66 | 'send_exceptions_to_ray' => env('SEND_EXCEPTIONS_TO_RAY', true), 67 | 68 | /* 69 | * The host used to communicate with the Ray app. 70 | * When using Docker on Mac or Windows, you can replace localhost with 'host.docker.internal' 71 | * When using Homestead with the VirtualBox provider, you can replace localhost with '10.0.2.2' 72 | * When using Homestead with the Parallels provider, you can replace localhost with '10.211.55.2' 73 | */ 74 | 'host' => env('RAY_HOST', 'localhost'), 75 | 76 | /* 77 | * The port number used to communicate with the Ray app. 78 | */ 79 | 'port' => env('RAY_PORT', 23517), 80 | 81 | /* 82 | * Absolute base path for your sites or projects in Homestead, 83 | * Vagrant, Docker, or another remote development server. 84 | */ 85 | 'remote_path' => env('RAY_REMOTE_PATH', null), 86 | 87 | /* 88 | * Absolute base path for your sites or projects on your local 89 | * computer where your IDE or code editor is running on. 90 | */ 91 | 'local_path' => env('RAY_LOCAL_PATH', null), 92 | 93 | /* 94 | * When this setting is enabled, the package will not try to format values sent to Ray. 95 | */ 96 | 'always_send_raw_values' => false, 97 | ]; 98 | -------------------------------------------------------------------------------- /resources/assets/images/auth/bg-dark.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/assets/images/auth/bg-dark.jpg -------------------------------------------------------------------------------- /resources/assets/images/auth/bg-light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/assets/images/auth/bg-light.jpg -------------------------------------------------------------------------------- /resources/assets/images/defaults/content-placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/assets/images/defaults/content-placeholder.png -------------------------------------------------------------------------------- /resources/css/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/css/app.css -------------------------------------------------------------------------------- /resources/docs/1.0/index.md: -------------------------------------------------------------------------------- 1 | - ## Get Started 2 | - [Overview](/{{route}}/{{version}}/overview) -------------------------------------------------------------------------------- /resources/docs/1.0/overview.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | --- 4 | 5 | - [First Section](#section-1) 6 | 7 | 8 | ## First Section 9 | 10 | Write something cool.. 🦊 -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * First we will load all of this project's JavaScript dependencies which 3 | * includes Vue and other libraries. It is a great starting point when 4 | * building robust, powerful web applications using Vue and Laravel. 5 | */ 6 | 7 | import './bootstrap'; 8 | import { createApp } from 'vue'; 9 | 10 | /** 11 | * Next, we will create a fresh Vue application instance. You may then begin 12 | * registering components with the application instance so they are ready 13 | * to use in your application's views. An example is included for you. 14 | */ 15 | 16 | const app = createApp({}); 17 | 18 | import ExampleComponent from './components/ExampleComponent.vue'; 19 | app.component('example-component', ExampleComponent); 20 | 21 | /** 22 | * The following block of code may be used to automatically register your 23 | * Vue components. It will recursively scan this directory for the Vue 24 | * components and automatically register them with their "basename". 25 | * 26 | * Eg. ./components/ExampleComponent.vue -> 27 | */ 28 | 29 | // Object.entries(import.meta.globEager('./**/*.vue')).forEach(([path, definition]) => { 30 | // app.component(path.split('/').pop().replace(/\.\w+$/, ''), definition.default); 31 | // }); 32 | 33 | /** 34 | * Finally, we will attach the application instance to a HTML element with 35 | * an "id" attribute of "app". This element is included with the "auth" 36 | * scaffolding. Otherwise, you will need to add an element yourself. 37 | */ 38 | 39 | app.mount('#app'); 40 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | window._ = _; 3 | 4 | import 'bootstrap'; 5 | 6 | /** 7 | * We'll load the axios HTTP library which allows us to easily issue requests 8 | * to our Laravel back-end. This library automatically handles sending the 9 | * CSRF token as a header based on the value of the "XSRF" token cookie. 10 | */ 11 | 12 | import axios from 'axios'; 13 | window.axios = axios; 14 | 15 | window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; 16 | 17 | /** 18 | * Echo exposes an expressive API for subscribing to channels and listening 19 | * for events that are broadcast by Laravel. Echo and event broadcasting 20 | * allows your team to easily build robust real-time web applications. 21 | */ 22 | 23 | // import Echo from 'laravel-echo'; 24 | 25 | // import Pusher from 'pusher-js'; 26 | // window.Pusher = Pusher; 27 | 28 | // window.Echo = new Echo({ 29 | // broadcaster: 'pusher', 30 | // key: import.meta.env.VITE_PUSHER_APP_KEY, 31 | // wsHost: import.meta.env.VITE_PUSHER_HOST ?? `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, 32 | // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, 33 | // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, 34 | // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https', 35 | // enabledTransports: ['ws', 'wss'], 36 | // }); 37 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Example Component 8 | 9 | // I'm an example component. // 10 | 11 | 12 | 13 | 14 | 15 | 16 | 23 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'Nunito', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // fonts 2 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 3 | 4 | // @import "./partials/base-bootstrap.scss"; 5 | @import './partials/base-tailwind.scss'; 6 | 7 | @import './layouts/partials/navbar.scss'; 8 | // @import './../vendor/fortify-ui/sass/starter/auth.scss'; 9 | -------------------------------------------------------------------------------- /resources/sass/layouts/partials/navbar.scss: -------------------------------------------------------------------------------- 1 | .navbar { 2 | @apply backdrop-blur-md bg-transparent fixed left-0 py-[5px] sm:px-4 top-0 w-full z-20 h-[60px]; 3 | 4 | .nav-container { 5 | @apply container flex flex-wrap items-center justify-between mx-auto; 6 | 7 | .logo-link { 8 | @apply flex items-center; 9 | 10 | .site-name { 11 | @apply dark:text-gray-200 font-semibold self-center text-2xl text-blue-700 whitespace-nowrap; 12 | } 13 | } 14 | 15 | .hamburger-menu { 16 | @apply dark:text-gray-400 dark:hover:text-white dark:focus:ring-gray-500 focus:outline-none focus:ring-2 focus:ring-blue-300 hover:text-gray-900 inline-flex items-center justify-center md:hidden ml-3 rounded-lg text-gray-400; 17 | 18 | span { 19 | @apply sr-only; 20 | } 21 | 22 | .class-svg-6 { 23 | @apply h-6 w-6; 24 | } 25 | } 26 | 27 | .auth-links { 28 | @apply hidden md:block md:w-auto w-full; 29 | 30 | .link-list { 31 | @apply border border-gray-100 dark:border-gray-700 flex flex-col md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium md:border-0 mt-4 p-4 rounded-lg; 32 | 33 | .login { 34 | a { 35 | @apply block dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 md:dark:hover:text-white md:dark:hover:bg-transparent pl-3 pr-4 py-2 rounded text-gray-700; 36 | } 37 | } 38 | 39 | .register { 40 | a { 41 | @apply block dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white hover:bg-gray-100 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 md:dark:hover:text-white md:dark:hover:bg-transparent pl-3 pr-4 py-2 rounded text-gray-700; 42 | } 43 | } 44 | } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /resources/sass/partials/base-bootstrap.scss: -------------------------------------------------------------------------------- 1 | // bootstrap imports 2 | @import "bootstrap/scss/bootstrap"; 3 | -------------------------------------------------------------------------------- /resources/sass/partials/base-tailwind.scss: -------------------------------------------------------------------------------- 1 | @import "tailwindcss/base"; 2 | @import "tailwindcss/components"; 3 | @import "tailwindcss/utilities"; 4 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fortify-ui", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "tailwind.config.js", 6 | "scripts": { 7 | "mix:dev": "mix", 8 | "mix:watch": "mix watch", 9 | "mix:watch-poll": "mix watch -- --watch-options-poll=1000", 10 | "mix:hot": "mix watch --hot", 11 | "mix:prod": "mix --production" 12 | }, 13 | "author": "", 14 | "license": "ISC", 15 | "devDependencies": { 16 | "autoprefixer": "^10.4.0", 17 | "cross-env": "^7.0.3", 18 | "laravel-mix": "^6.0.39", 19 | "laravel-mix-purgecss": "^6.0.0", 20 | "lodash": "^4.17.21", 21 | "postcss": "^8.4.4", 22 | "postcss-import": "^14.0.2", 23 | "resolve-url-loader": "^4.0.0", 24 | "sass": "^1.45.0", 25 | "sass-loader": "^12.4.0", 26 | "string-replace-loader": "^3.1.0", 27 | "tailwindcss": "^3.0.1", 28 | "webpack": "^5.65.0" 29 | }, 30 | "dependencies": {} 31 | } 32 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/sass/starter/auth.scss: -------------------------------------------------------------------------------- 1 | // fonts 2 | @import url("https://fonts.googleapis.com/css?family=Nunito"); 3 | 4 | // common variables 5 | @import "./variables"; 6 | @import "./layout/main.scss"; 7 | @import "./dark.scss"; 8 | 9 | @import "./components/inputs.scss"; 10 | @import "./components/verify-notice-card.scss"; 11 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/sass/starter/components/inputs.scss: -------------------------------------------------------------------------------- 1 | span[role="alert"] { 2 | strong { 3 | @apply text-sm text-red-400 mt-2; 4 | } 5 | } 6 | 7 | .input-container { 8 | @apply relative flex flex-row justify-center items-center space-x-2 pl-2 9 | rounded-md border border-blue-200 dark:border-gray-600 text-gray-900; 10 | 11 | svg { 12 | @apply fill-gray-600 dark:fill-gray-300; 13 | 14 | height: 20px; 15 | } 16 | 17 | input { 18 | @apply text-base w-full pl-2 pr-4 py-[0.5rem] rounded-l-none rounded-r-md border border-transparent 19 | focus:text-base focus:outline-none transition-colors duration-200 20 | dark:bg-gray-700 dark:focus:border-gray-500 21 | selection:bg-gray-500 selection:text-gray-200 text-gray-800 dark:text-gray-200; 22 | 23 | &[name="password"] { 24 | @apply pr-10 #{!important}; 25 | } 26 | } 27 | 28 | .eye-toggle { 29 | @apply absolute right-3 top-[12px]; 30 | 31 | svg { 32 | @apply h-[18px] fill-gray-500 dark:fill-gray-300 transition-colors duration-150; 33 | 34 | &:hover { 35 | @apply fill-gray-700 dark:fill-gray-300; 36 | } 37 | 38 | eye-close { 39 | @apply fill-gray-800 dark:fill-gray-300; 40 | 41 | &:hover { 42 | @apply fill-gray-700 dark:fill-gray-200; 43 | } 44 | } 45 | } 46 | } 47 | } 48 | 49 | .check-input-container { 50 | @apply flex items-center ml-1; 51 | 52 | input { 53 | @apply w-4 h-4; 54 | } 55 | 56 | label { 57 | @apply ml-2 text-sm font-medium text-gray-900 dark:text-gray-300; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/sass/starter/components/verify-notice-card.scss: -------------------------------------------------------------------------------- 1 | // @source: https://tailwindcomponents.com/component/simple-welcome-card-with-alpinejs-action 2 | 3 | .verify-notice-card { 4 | @apply flex items-center justify-center px-5 py-10; 5 | 6 | .card-container { 7 | @apply bg-blue-600 lg:w-10/12 px-5 py-10 rounded shadow-xl text-white w-full xl:w-3/4; 8 | 9 | .card-body { 10 | @apply -mx-3 flex flex-wrap items-center justify-center; 11 | 12 | .info-container { 13 | @apply px-3 text-center; 14 | 15 | .info-illustration { 16 | @apply md:py-5 p-5 xl:px-8; 17 | 18 | .class-svg-6 { 19 | @apply h-auto w-40; 20 | } 21 | } 22 | } 23 | 24 | .welcome-message { 25 | @apply md:w-2/4 px-3 sm:w-1/2 text-left w-full; 26 | 27 | .message-container { 28 | @apply md:py-5 pl-5 py-5 xl:px-8; 29 | 30 | .welcome-username { 31 | @apply mb-3 text-2xl; 32 | } 33 | 34 | .description { 35 | @apply text-lg text-indigo-200; 36 | 37 | a { 38 | @apply text-indigo-50 underline; 39 | } 40 | } 41 | } 42 | } 43 | 44 | .actions { 45 | @apply md:w-1/4 px-3 sm:w-1/2 text-center w-full; 46 | 47 | .action-container { 48 | @apply md:py-5 py-5 xl:px-8; 49 | 50 | .verify-email-button { 51 | @apply bg-gray-200 block duration-150 ease-in-out focus:outline-none hover:bg-white 52 | hover:text-gray-900 mb-3 md:text-lg px-4 py-2 rounded text-indigo-600 transition w-full; 53 | } 54 | 55 | .logout-button { 56 | @apply bg-indigo-900 duration-150 ease-in-out focus:outline-none hover:bg-gray-900 57 | px-4 py-2 rounded text-white transition w-full; 58 | } 59 | } 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/sass/starter/dark.scss: -------------------------------------------------------------------------------- 1 | @media (prefers-color-scheme: dark) { 2 | body { 3 | @apply dark:bg-gray-900; 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/sass/starter/layout/main.scss: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: $font-family-sans-serif; 3 | height: 100%; 4 | width: 100%; 5 | 6 | @apply bg-white backdrop-blur-md; 7 | } 8 | 9 | // @source: https://tailwindcomponents.com/component/login-form-with-floating-labels 10 | 11 | .auth-card-container { 12 | @apply flex flex-col justify-center min-h-screen py-6 sm:py-12; 13 | 14 | .auth-card { 15 | @apply py-3 relative sm:max-w-xl sm:mx-auto w-[500px]; 16 | 17 | &:hover { 18 | .backward-card { 19 | @apply opacity-80; 20 | } 21 | 22 | .front-card { 23 | @apply shadow-2xl; 24 | } 25 | } 26 | 27 | .backward-card { 28 | @apply -skew-y-6 absolute bg-gradient-to-r from-blue-300 inset-0 29 | shadow-lg sm:skew-y-0 sm:-rotate-6 sm:rounded-3xl to-blue-600 30 | transform transition-all duration-150; 31 | } 32 | 33 | .front-card { 34 | @apply bg-white px-4 py-10 relative shadow-xl sm:rounded-3xl 35 | sm:px-12 sm:py-16 dark:bg-gray-800 transition-all duration-150; 36 | 37 | .card-container { 38 | @apply max-w-md mx-auto; 39 | 40 | .title { 41 | @apply text-center text-gray-900 dark:text-gray-300; 42 | 43 | .form-title { 44 | @apply font-semibold mb-2 text-2xl cursor-default; 45 | } 46 | } 47 | 48 | .splitter-container { 49 | @apply h-8 cursor-default; 50 | 51 | .splitter { 52 | @apply bg-gray-300 dark:bg-gray-700 h-px my-1 relative; 53 | 54 | .splitter-background { 55 | @apply -mt-3 absolute flex justify-center left-0 top-0 w-full; 56 | 57 | span { 58 | @apply bg-white dark:bg-gray-700 px-4 text-xs py-1 59 | text-gray-500 dark:text-gray-300 uppercase; 60 | } 61 | } 62 | } 63 | } 64 | 65 | form { 66 | @apply leading-6 py-8 sm:text-lg sm:leading-7 space-y-4 text-base text-gray-700; 67 | 68 | min-width: 300px; 69 | 70 | .remember-forgot-row { 71 | @apply flex items-center justify-between align-middle mt-2; 72 | 73 | .check-input-container { 74 | @apply flex items-start align-middle w-6/12; 75 | } 76 | 77 | .forgot-password { 78 | @apply text-sm w-6/12; 79 | } 80 | } 81 | 82 | .btn-link { 83 | @apply text-sm hover:text-blue-500 transition-colors duration-200 84 | float-right dark:text-gray-400 dark:hover:text-gray-300 85 | cursor-pointer text-right w-full; 86 | 87 | &.m-top-2 { 88 | @apply mt-2; 89 | } 90 | } 91 | 92 | .submit-button-container { 93 | @apply flex flex-row relative; 94 | 95 | button { 96 | @apply flex flex-row justify-center items-center space-x-1 bg-blue-500 text-base text-white rounded-[3px] px-4 py-2 mt-5 97 | hover:bg-blue-600 transition-all duration-300 w-full; 98 | 99 | &:hover { 100 | svg { 101 | @apply fill-white; 102 | 103 | height: 18px; 104 | } 105 | } 106 | 107 | &.full-width { 108 | @apply w-full; 109 | } 110 | 111 | svg { 112 | @apply fill-gray-100 transition-all duration-200; 113 | 114 | height: 18px; 115 | } 116 | } 117 | } 118 | } 119 | } 120 | } 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/sass/starter/variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'Nunito', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: ["./views/**/*.blade.php"], 4 | theme: { 5 | extend: {}, 6 | }, 7 | plugins: [], 8 | }; 9 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/generic-errors.blade.php: -------------------------------------------------------------------------------- 1 | 2 | @if ($errors->any()) 3 | 4 | @foreach ($errors->all() as $error) 5 | 6 | 7 | 8 | {{ $error }} 9 | 10 | 11 | 12 | @endforeach 13 | 14 | @endif 15 | 16 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/partials/eye-toggle-script.blade.php: -------------------------------------------------------------------------------- 1 | @section('footerScripts') 2 | 34 | @endsection() 35 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/social-login.blade.php: -------------------------------------------------------------------------------- 1 | @if (config('fortify-ui.use_socialite')) 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ __('fortify-ui::auth.splitter_or_login_with') }} 9 | 10 | 11 | 12 | 13 | @endif 14 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/social-register.blade.php: -------------------------------------------------------------------------------- 1 | @if (config('fortify-ui.use_socialite')) 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{ __('fortify-ui::auth.splitter_or_register_with') }} 9 | 10 | 11 | 12 | 13 | @endif 14 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/arrow-right.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/email.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/eye-close.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/eye-open.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/login-gate.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/name.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/password.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/components/svg-icons/username.blade.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/views/starter/pages/confirm-password.blade.php: -------------------------------------------------------------------------------- 1 | @extends('guest.layouts.layout') 2 | @section('pageTitle', __('fortify-ui::auth.confirm_password')) 3 | 4 | @php 5 | $defaultUser = config('app.debug') 6 | ? app() 7 | ->make(\App\Models\User::class) 8 | ::where('email', 'super_admin@example.com') 9 | ->where('email', 'admin@example.com') 10 | ->first() 11 | : false; 12 | @endphp 13 | 14 | @section('content') 15 | 16 | 17 | 18 | 19 | {{ __('fortify-ui::auth.confirm_password') }} 20 | 21 | 22 | 23 | 24 | 25 | @csrf 26 | 27 | {{-- Social Login --}} 28 | @include('fortify-ui::starter.components.social-login') 29 | 30 | 31 | 32 | 33 | 34 | @include('fortify-ui::starter.components.svg-icons.password') 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | @include('fortify-ui::starter.components.svg-icons.eye-open') 45 | @include('fortify-ui::starter.components.svg-icons.eye-close') 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | {{ __('fortify-ui::auth.confirm_password_button') }} 54 | 55 | 56 | 57 | 58 | @endsection 59 | 60 | @include('fortify-ui::starter.components.partials.eye-toggle-script') 61 | -------------------------------------------------------------------------------- /resources/vendor/fortify-ui/webpack.mix.js: -------------------------------------------------------------------------------- 1 | require("laravel-mix-purgecss"); 2 | 3 | const path = require("path"); 4 | const mix = require("laravel-mix"); 5 | const tailwindcss = require("tailwindcss"); 6 | 7 | mix 8 | .setPublicPath("./") 9 | .sass(path.resolve("sass/starter/auth.scss"), path.resolve("css/starter.css")) 10 | .options({ 11 | processCssUrls: false, 12 | postCss: [tailwindcss("./tailwind.config.js")], 13 | }) 14 | .version(); 15 | -------------------------------------------------------------------------------- /resources/views/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/views/.DS_Store -------------------------------------------------------------------------------- /resources/views/auth/layouts/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @include('auth.layouts.partials.head') 6 | 7 | 8 | 9 | 10 | @include('auth.layouts.partials.navbar') 11 | 12 | 13 | 14 | 15 | @yield('content') 16 | 17 | 18 | 19 | 20 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /resources/views/auth/layouts/partials/head.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @yield('pageTitle', 'Laravel Ready') | {{ config('app.name') }} 8 | 9 | {{-- Favicon --}} 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | @vite(['resources/sass/app.scss', 'resources/vendor/fortify-ui/sass/starter/auth.scss', 'resources/js/app.js']) 18 | -------------------------------------------------------------------------------- /resources/views/auth/layouts/partials/navbar.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ config('app.name', 'Laravel Starter') }} 10 | 11 | 12 | 13 | 14 | 16 | 17 | Open main menu 18 | 19 | 20 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | @guest 33 | 34 | 35 | 36 | 37 | {{ __('fortify-ui::auth.login') }} 38 | 39 | 40 | 41 | 42 | 43 | 44 | {{ __('fortify-ui::auth.register') }} 45 | 46 | 47 | 48 | @endguest 49 | 50 | @auth 51 | 52 | 53 | 54 | {{ __('fortify-ui::auth.logout') }} 55 | 56 | 57 | @csrf 58 | 59 | 60 | 61 | @endauth 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /resources/views/auth/pages/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/views/auth/pages/.gitkeep -------------------------------------------------------------------------------- /resources/views/errors/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', $messageContext ?? __('Unauthorized')) 4 | @section('code', '401') 5 | @section('message', $messageContext ?? __('Unauthorized')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', $messageContext ?? __('Forbidden')) 4 | @section('code', '403') 5 | @section('message', $messageContext ?? __($exception->getMessage() ?: 'Forbidden')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', __('Not Found')) 4 | @section('code', '404') 5 | 6 | @if ($exception) 7 | @section('message', $exception->getMessage()) 8 | @else 9 | @section('message', __('Not Found')) 10 | @endif 11 | -------------------------------------------------------------------------------- /resources/views/errors/419.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', $messageContext ?? __('Page Expired')) 4 | @section('code', '419') 5 | @section('message', $messageContext ?? __('Page Expired')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/429.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', $messageContext ?? __('Too Many Requests')) 4 | @section('code', '429') 5 | @section('message', $messageContext ?? __('Too Many Requests')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', $messageContext ?? __('Server Error')) 4 | @section('code', '500') 5 | @section('message', $messageContext ?? __('Server Error')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/503.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors.minimal') 2 | 3 | @section('title', $messageContext ?? __('Service Unavailable')) 4 | @section('code', '503') 5 | @section('message', $messageContext ?? __('Service Unavailable')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | @yield('title') 9 | 10 | 11 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | @yield('message') 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /resources/views/guest/layouts/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | @include('web.layouts.partials.head') 6 | 7 | 8 | 9 | 10 | @include('guest.layouts.partials.navbar') 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | @yield('content') 26 | 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /resources/views/guest/layouts/partials/navbar.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ config('app.name', 'Laravel Starter') }} 10 | 11 | 12 | 13 | 14 | 16 | 17 | Open main menu 18 | 19 | 20 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | @guest 33 | 34 | 35 | 36 | 37 | {{ __('fortify-ui::auth.login') }} 38 | 39 | 40 | 41 | 42 | 43 | 44 | {{ __('fortify-ui::auth.register') }} 45 | 46 | 47 | 48 | @endguest 49 | 50 | @auth 51 | 52 | 53 | 54 | {{ __('fortify-ui::auth.logout') }} 55 | 56 | 57 | @csrf 58 | 59 | 60 | 61 | @endauth 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /resources/views/guest/pages/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laravel-ready/laravel-starter/385cf24cbe9b97853468c3f4adfe20a42e8ee0e5/resources/views/guest/pages/.gitkeep -------------------------------------------------------------------------------- /resources/views/web/layouts/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @include('web.layouts.partials.head') 5 | 6 | 7 | 8 | 9 | @include('web.layouts.partials.navbar') 10 | 11 | 12 | @yield('content') 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /resources/views/web/layouts/partials/head.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @yield('pageTitle', 'Laravel Ready') | {{ config('app.name') }} 8 | 9 | {{-- Favicon --}} 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | @vite(['resources/sass/app.scss', 'resources/vendor/fortify-ui/sass/starter/auth.scss', 'resources/js/app.js']) 18 | -------------------------------------------------------------------------------- /resources/views/web/layouts/partials/navbar.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | {{ config('app.name', 'Laravel Starter') }} 10 | 11 | 12 | 13 | 14 | 16 | 17 | Open main menu 18 | 19 | 20 | 22 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | @guest 33 | 34 | 35 | 36 | 37 | {{ __('fortify-ui::auth.login') }} 38 | 39 | 40 | 41 | 42 | 43 | 44 | {{ __('fortify-ui::auth.register') }} 45 | 46 | 47 | 48 | @endguest 49 | 50 | @auth 51 | 52 | 53 | 54 | {{ __('fortify-ui::auth.logout') }} 55 | 56 | 57 | @csrf 58 | 59 | 60 | 61 | @endauth 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /resources/views/web/pages/home/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('web.layouts.layout') 2 | 3 | @section('content') 4 | 5 | 6 | 7 | 8 | 9 | {{ __('Dashboard') }} 10 | 11 | 12 | @if (session('status')) 13 | 14 | {{ session('status') }} 15 | 16 | @endif 17 | 18 | {{ __('You are logged in!') }} 19 | 20 | 21 | 22 | 23 | 24 | 25 | @endsection 26 | -------------------------------------------------------------------------------- /resources/views/web/pages/landing/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('web.layouts.layout') 2 | 3 | @section('content') 4 | {{-- 5 | Author: Surjith S M 6 | Twitter: @surjithctly 7 | 8 | Get more templates on web3templates.com 9 | Tailwind Play: https://play.tailwindcss.com/O0fbQqzI8M 10 | --}} 11 | 12 | 13 | 14 | 15 | Welcome to Quickstart 16 | 17 | 18 | 19 | Laravel Starter 20 | 21 | 22 | 23 | You can use this starter template to build your next Laravel project. 24 | When you need to documentation you can find it on 25 | 27 | Laravel Ready Docs 28 | 29 | 30 | 31 | 32 | 33 | 35 | 37 | 39 | 40 | 41 | Go to Github Repo 42 | 43 | 44 | 45 | 46 | @endsection 47 | -------------------------------------------------------------------------------- /routes/api-auth.php: -------------------------------------------------------------------------------- 1 | group(function () { 7 | Route::post('login', [Auth\AuthController::class, 'login']); 8 | Route::post('register', [Auth\AuthController::class, 'register']); 9 | 10 | Route::prefix('')->middleware('auth:sanctum')->group(function () { 11 | Route::post('logout', [Auth\AuthController::class, 'logout']); 12 | Route::get('me', [Auth\AuthController::class, 'me']); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /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 | view('web.pages.landing.index')); 18 | 19 | Route::get('home', [Home\HomeController::class, 'index'])->middleware(['auth', 'verified', 'password.confirm'])->name('home'); 20 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/clockwork/.gitignore: -------------------------------------------------------------------------------- 1 | *.json 2 | *.json.gz 3 | index 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /stubs/cast.inbound.stub: -------------------------------------------------------------------------------- 1 | $attributes 14 | */ 15 | public function set(Model $model, string $key, mixed $value, array $attributes): mixed 16 | { 17 | return $value; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /stubs/cast.stub: -------------------------------------------------------------------------------- 1 | $attributes 14 | */ 15 | public function get(Model $model, string $key, mixed $value, array $attributes): mixed 16 | { 17 | return $value; 18 | } 19 | 20 | /** 21 | * Prepare the given value for storage. 22 | * 23 | * @param array $attributes 24 | */ 25 | public function set(Model $model, string $key, mixed $value, array $attributes): mixed 26 | { 27 | return $value; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /stubs/console.stub: -------------------------------------------------------------------------------- 1 | json($items); 19 | } 20 | 21 | /** 22 | * Show the form for creating a new resource. 23 | */ 24 | public function create() 25 | { 26 | // 27 | } 28 | 29 | /** 30 | * Store a newly created resource in storage. 31 | */ 32 | public function store({{ storeRequest }} $request) 33 | { 34 | $item = {{ model }}::create($request->validated()); 35 | 36 | return response()->json($item, 201); 37 | } 38 | 39 | /** 40 | * Display the specified resource. 41 | */ 42 | public function show({{ model }} ${{ modelVariable }}) 43 | { 44 | return ${{ modelVariable }}; 45 | } 46 | 47 | /** 48 | * Show the form for editing the specified resource. 49 | */ 50 | public function edit({{ model }} ${{ modelVariable }}) 51 | { 52 | // 53 | } 54 | 55 | /** 56 | * Update the specified resource in storage. 57 | */ 58 | public function update({{ updateRequest }} $request, {{ model }} ${{ modelVariable }}) 59 | { 60 | ${{ modelVariable }}->update($request->validated()); 61 | 62 | return response()->json(${{ modelVariable }}); 63 | } 64 | 65 | /** 66 | * Remove the specified resource from storage. 67 | */ 68 | public function destroy({{ model }} ${{ modelVariable }}) 69 | { 70 | ${{ modelVariable }}->delete(); 71 | 72 | return response()->json(null, 204); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /stubs/controller.nested.api.stub: -------------------------------------------------------------------------------- 1 | 29 | */ 30 | public function broadcastOn(): array 31 | { 32 | return [ 33 | new PrivateChannel('channel-name'), 34 | ]; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /stubs/factory.stub: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class {{ factory }}Factory extends Factory 11 | { 12 | /** 13 | * Define the model's default state. 14 | * 15 | * @return array 16 | */ 17 | public function definition(): array 18 | { 19 | return [ 20 | // 21 | ]; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /stubs/job.queued.stub: -------------------------------------------------------------------------------- 1 | 48 | */ 49 | public function attachments(): array 50 | { 51 | return []; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /stubs/markdown-mail.stub: -------------------------------------------------------------------------------- 1 | 48 | */ 49 | public function attachments(): array 50 | { 51 | return []; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /stubs/markdown-notification.stub: -------------------------------------------------------------------------------- 1 | 26 | */ 27 | public function via(object $notifiable): array 28 | { 29 | return ['mail']; 30 | } 31 | 32 | /** 33 | * Get the mail representation of the notification. 34 | */ 35 | public function toMail(object $notifiable): MailMessage 36 | { 37 | return (new MailMessage)->markdown('{{ view }}'); 38 | } 39 | 40 | /** 41 | * Get the array representation of the notification. 42 | * 43 | * @return array 44 | */ 45 | public function toArray(object $notifiable): array 46 | { 47 | return [ 48 | // 49 | ]; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /stubs/middleware.stub: -------------------------------------------------------------------------------- 1 | id(); 16 | $table->timestamps(); 17 | }); 18 | } 19 | 20 | /** 21 | * Reverse the migrations. 22 | */ 23 | public function down(): void 24 | { 25 | Schema::dropIfExists('{{ table }}'); 26 | } 27 | }; 28 | -------------------------------------------------------------------------------- /stubs/migration.stub: -------------------------------------------------------------------------------- 1 | 26 | */ 27 | public function via(object $notifiable): array 28 | { 29 | return ['mail']; 30 | } 31 | 32 | /** 33 | * Get the mail representation of the notification. 34 | */ 35 | public function toMail(object $notifiable): MailMessage 36 | { 37 | return (new MailMessage) 38 | ->line('The introduction to the notification.') 39 | ->action('Notification Action', url('/')) 40 | ->line('Thank you for using our application!'); 41 | } 42 | 43 | /** 44 | * Get the array representation of the notification. 45 | * 46 | * @return array 47 | */ 48 | public function toArray(object $notifiable): array 49 | { 50 | return [ 51 | // 52 | ]; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /stubs/observer.plain.stub: -------------------------------------------------------------------------------- 1 | 21 | */ 22 | public function rules(): array 23 | { 24 | return [ 25 | // 26 | ]; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /stubs/resource-collection.stub: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | public function toArray(Request $request): array 16 | { 17 | return parent::toArray($request); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /stubs/resource.stub: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | public function toArray(Request $request): array 16 | { 17 | return parent::toArray($request); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /stubs/rule.stub: -------------------------------------------------------------------------------- 1 | count(10)->create(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /stubs/test.stub: -------------------------------------------------------------------------------- 1 | get('/'); 17 | 18 | $response->assertStatus(200); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /stubs/test.unit.stub: -------------------------------------------------------------------------------- 1 | assertTrue(true); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /stubs/view-component.stub: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /tests/ExampleTest.php: -------------------------------------------------------------------------------- 1 | toBeTrue(); 5 | }); 6 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 17 | 18 | $response->assertStatus(200); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/Pest.php: -------------------------------------------------------------------------------- 1 | in('Feature'); 15 | 16 | /* 17 | |-------------------------------------------------------------------------- 18 | | Expectations 19 | |-------------------------------------------------------------------------- 20 | | 21 | | When you're writing tests, you often need to check that values meet certain conditions. The 22 | | "expect()" function gives you access to a set of "expectations" methods that you can use 23 | | to assert different things. Of course, you may extend the Expectation API at any time. 24 | | 25 | */ 26 | 27 | expect()->extend('toBeOne', function () { 28 | return $this->toBe(1); 29 | }); 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Functions 34 | |-------------------------------------------------------------------------- 35 | | 36 | | While Pest is very powerful out-of-the-box, you may have some testing code specific to your 37 | | project that you don't want to repeat in every file. Here you can also expose helpers as 38 | | global functions to help you to reduce the number of lines of code in your test files. 39 | | 40 | */ 41 | 42 | function something() 43 | { 44 | // .. 45 | } 46 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import laravel from 'laravel-vite-plugin'; 3 | import vue from '@vitejs/plugin-vue'; 4 | import { viteStaticCopy } from 'vite-plugin-static-copy'; 5 | 6 | export default defineConfig({ 7 | plugins: [ 8 | laravel({ 9 | input: ['resources/sass/app.scss', 'resources/vendor/fortify-ui/sass/starter/auth.scss', 'resources/js/app.js'], 10 | refresh: true, 11 | }), 12 | vue({ 13 | template: { 14 | transformAssetUrls: { 15 | base: null, 16 | includeAbsolute: false, 17 | }, 18 | }, 19 | }), 20 | viteStaticCopy({ 21 | targets: [{ src: 'resources/assets/*', dest: 'assets' }], 22 | }), 23 | ], 24 | resolve: { 25 | alias: { 26 | vue: 'vue/dist/vue.esm-bundler.js', 27 | }, 28 | }, 29 | }); 30 | --------------------------------------------------------------------------------
15 | Welcome to Quickstart 16 |
23 | You can use this starter template to build your next Laravel project. 24 | When you need to documentation you can find it on 25 | 27 | Laravel Ready Docs 28 | 29 |