nasirkhan/laravel-starter
Laravel 13 modular starter with separated frontend/backend. Includes auth & authorization, user/role management, admin backend, backups, log viewer, and custom artisan commands (install, update, module builder). Use as a base to build reusable modules.
Laravel Starter is a Laravel 13.x based simple starter project. Most of the commonly needed features of an application like Authentication, Authorisation, Users and Role management, Application Backend, Backup, Log viewer are available here. It is modular, so you may use this project as a base and build your own modules. A module can be used in any Laravel Starter based project.
Here Frontend and Backend are completely separated with separate routes, controllers, and themes as well.
Please let me know your feedback and comments.
Check the following demo project. It is just a straight installation of the project without any modification.
Demo URL: https://laravel.nasirkhn.com
You may use the following account credentials to access the application backend.
User: super@admin.com
Pass: secret
User: user@user.com
Pass: secret
We have created a number of custom commands for the project. The commands are listed below with a brief about their use of it.
See the canonical Installation section below for the full setup flow and all supported options for php artisan starter:install.
After pulling changes from the repository, run:
php artisan starter:update
This runs composer update, checks for new module migrations, runs outstanding migrations, and clears all caches.
To create a project use the following command, you have to replace the MODULE_NAME with the name of the module.
php artisan module:build MODULE_NAME
You may want to use --force option to overwrite the existing module. if you use this option, it will replace all the existing files with the default stub files.
php artisan module:build MODULE_NAME --force
php artisan clear-all
or
composer clear-all
This clears application caches including config, route, view, and permission cache.
If you prefer Composer scripts, composer clear-all is also available.
We are now using Laravel Pint to make the code style stay as clean and consistent as the Laravel Framework. Use the following command to apply CS-Fix.
composer pint
Along with Laravel Pint, we are using prettier to format the blade templates. You can install the prettier extension in your favorite editor.
The following command will format the blade templates.
npm run format
npm is the supported package manager for this project. Avoid mixing npm and yarn lockfiles on the same checkout, especially on Windows, because native packages such as esbuild and Tailwind's platform binaries can fail to resolve or unlink cleanly after a mixed install.
If you are intentionally using yarn, remove the existing install state first so Yarn can rebuild it from scratch.
Remove-Item -Recurse -Force node_modules
Remove-Item -Force yarn.lock
yarn cache clean
yarn install
yarn format
Several custom commands are available to add and update role-permissions. Please read the Role - Permission Wiki page, where you will find the list of commands with examples.
The Laravel Starter comes with several features which are the most common in almost all applications. It is a template project which means it is intended to be built in a way that it can be used for other projects.
It is a modular application, and some modules are installed by default. It will be helpful to use it as a base for future applications.
Backend and Frontend namespace.Modules. A module like Posts, Comments, and Tags are separated from the core features like User, Role, PermissionThis is the single source of truth for installing Laravel Starter from a fresh checkout. You may find more background in the Installation Wiki.
If you created a new repository from this GitHub template, or cloned it directly:
# 1. Install PHP dependencies
composer install
# 2. Run the interactive setup wizard — handles .env, database, migrations, seeding, and npm assets
php artisan starter:install
Or as a single shortcut after composer install:
composer setup
For a true one-liner from a fresh clone, convenience scripts are included:
# Linux / macOS
bash setup.sh
# Windows (PowerShell)
.\setup.ps1
Both scripts run composer install and then launch php artisan starter:install.
Pass any starter:install flags through, e.g. bash setup.sh --demo.
The setup wizard will guide you through environment configuration, database selection, migrations, seeding, and building frontend assets. When finished it prints the app URL and default login credentials.
Available options:
| Option | Description |
|---|---|
--skip-db |
Skip database setup |
--skip-seed |
Skip database seeding |
--skip-npm |
Skip npm install and asset build |
--demo |
Seed with demo data (no prompt) |
If you only need to rerun cache clearing after setup, use:
php artisan clear-all
composer create-project nasirkhan/laravel-starter
This runs migrations automatically. Afterwards run the setup wizard to seed and build assets:
php artisan starter:install --skip-db
After creating the new permissions use the following commands to update cached permissions.
php artisan cache:forget spatie.permission.cache
Two seeder categories are available:
AuthTableSeeder, MenuDatabaseSeederSEED_DUMMY_DATA=false in .env# Full seed (essential + dummy data)
php artisan migrate:fresh --seed
# Essential data only
php artisan db:seed-essential --fresh
# Add or refresh demo content at any time
php artisan laravel-starter:insert-demo-data
php artisan laravel-starter:insert-demo-data --fresh
For production, set SEED_DUMMY_DATA=false and use --force:
php artisan db:seed-essential --fresh --force
This project is configured with Laravel Sail (https://laravel.com/docs/sail). You can use all the docker functionalities here. To install using docker and sail:
composer install.env file by copying the .env-sail. You may use the command to do that cp .env-sail .env.env filesail up (consider adding this to your alias: alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail')sail artisan migrate --seedsail artisan storage:linkIf you discover any security-related issues, please send an e-mail to Nasir Khan Saikat via nasir8891@gmail.com instead of using the issue tracker.
Home Page
Login Page

Posts Page
Backend Dashboard
How can I help you explore Laravel packages today?