Skip to content

Laravel PHP Framework with bootstrap SB Admin 2 template

Notifications You must be signed in to change notification settings

alHasandev/laravel-sb-admin

Repository files navigation

Build Status Total Downloads Latest Stable Version License

Laravel SB Admin Template

Laravel v9.15.0

Bootstrap 4 - SB Admin 2

Requirements

Installation

With Laravel Sail

If your local machine already has Docker installed

Under the hood laravel sail is using docker compose

# Clone repository 
git clone https://github.com/alHasandev/laravel-sb-admin.git

# Enter working directory
cd larave-sb-admin

# Install dependencies using docker 
# / make sure you set file permission to executable 
./docking composer composer install

Optional: set sail alias to bashrc or zshrc config file

./save-alias sail="[ -f sail ] && bash sail || bash vendor/bin/sail"

#or if you using zsh
zsh ./save-alias sail="[ -f sail ] && bash sail || bash vendor/bin/sail"
source ~/.zshrc

With NodeJS, PHP and Composer

If your local machine already has NodeJS, PHP and Composer installed

# Clone Repository
git clone https://github.com/alHasandev/laravel-sb-admin.git

# Enter working directory
cd larave-sb-admin

# Install dependencies
composer update
npm install

# Generate js modules
npm run dev

Environment Settings

Before you start developing make sure you have .env file on your project directory root

If you are using Docker in development you can simply rename .env.sail file to .env

Otherwise you can use .env.example file and rename it to .env

Adjust .env settings to your project preferences

Development

With Laravel Sail

# On your project root directory
./vendor/bin/sail up
# Or running sail with detached mode
./vendor/bin/sail up -d

After sail up and running, run the following command on current terminal (if you using -d (detached) flag) or other terminal to generate js modules

# Install package dependencies
sail npm install
# Generate js modules
sail npm run dev

With Laravel PHP Artisan

Before you can run php artisan, you must generate a key

# On your project root directory
php artisan key:generate

And run the local development server:

# On your project root directory
php artisan serve

If above instructions success now you can start view your web on browser http://localhost:8000 (based on your .env setting)

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.