Base is a Laravel 11 based application starter kit that is used to create a new Laravel application. It is a simple and easy to use starter kit which provides a solid foundation to build your application on top of it.
Detailed documentation is available below for features and how to use them.
- Laravel 11
- PHP 8.*
- MySQL 8.*
- Tailwind 3 (CSS)
- React 18 (UI)
- Fork the repository
- Use the form as a template to create a new repository
- Clone the new repository and run the following commands:
composer install
npm install
npm run dev
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seedphp artisan serveOpen your browser and visit http://localhost:8000
- Email:
sadmin@base.com - Password:
Pass@123!321 - Role:
Super Admin
- Visit
http://localhost:8000/register - Register a new user, the user will be assigned the
Businessrole by default.
The Application comes with 3 roles by default:
- Super Admin
- Business
- Customer
Each role has its own set of permissions. You can create new roles and permissions from the Business panel.
The Super Admin has access to all the modules and features of the application. The Super Admin can access the Business panel and can perform all the operations.
The Business role is for the business owners. The business owner can create new users and assign roles to them. All the new modules created will have all the permissions assigned to the Business role by default. The business owner can assign permissions to the roles.
The Customer role is for the customers. As of now, the customer role does not have any permissions assigned to it.
To make a new module, run the following command. The command will ask for the module name and will create all the necessary files for the module.
php artisan app:make:moduleThis command will create the following files:
- Controller
- Model
- Migration
- for menu management
- for database table
- Factory
- Seeder
- Request
- Routes
- Views
- Permissions
- Menu
- Policy
Update the migration files as per the requirements and run the following command to migrate the database.
php artisan migrate