This is a private Laravel project boilerplate designed to kickstart new web applications. It includes common configurations, packages, and best practices to streamline the development process.
- Laravel 11.x
- Authentication system using Laravel Breeze
- Roles and Permission using
spatie/laravel-permission
packages - Impersonation using
lab404/laravel-impersonate
package - Log viewer using
opcodesio/log-viewer
package - SweetAlert using
realrashid/sweet-alert
package - Image manipulation using
intervention/image
package - Array as Collection using
calebporzio/sushi
package - HTML to PDF using
spatie/browsershot
package - MediaLibrary using
spatie/laravel-medialibrary
package - Datatables implementation using
yajra/laravel-datatables-oracle
package - Feature flag using
laravel/pennant
package
- PHP 8.2 or higher
- Node.js v20 or higher
-
Clone the repository:
git clone https://github.com/azri-cs/laravel-boilerplate
-
Navigate to the project directory:
cd laravel-boilerplate
-
Install PHP dependencies:
composer install
-
Install JavaScript dependencies:
npm install
-
Copy the example environment file:
cp .env.example .env
-
Generate an application key:
php artisan key:generate
-
Configure your database in the
.env
file -
Run migrations:
php artisan migrate
-
To start the development server:
php artisan serve
-
To compile assets:
npm run build
-
To watch for changes in assets:
npm run dev
- Update
config/app.php
with your application details - Modify
resources/views/layouts/app.blade.php
for the main layout template - Add your routes in
routes/web.php
androutes/api.php
- Follow PSR-12 coding standards or you can read here.
- Use feature branches and pull requests for development
- Keep the
.env.example
file updated with new environment variables
This is a private project. Unauthorized copying, modification, distribution, or use of this software is strictly prohibited.