Creating Base Template for Laravel Projects
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:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Starter template laravel is currently extended with the following requirements.
Instructions on how to use them in your own application are linked below.
Requirement | Version |
---|---|
PHP | 8.1.10 |
Mysql | 8.0.30 |
Make sure all requirements are installed on the system. Clone the project and install dependencies:
$ git clone https://github.com/wisnuuakbr/starter-template-laravel.git
$ cd starter-template-laravel
$ composer install
Copy the .env.example file and rename it to .env
Change the config for your local server
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=template_builder
DB_USERNAME=root
DB_PASSWORD=
Generate the application key using the following command:
$ php artisan key:generate
Run the migrations table:
$ php artisan migrate
Run the seeder:
$ php artisan db:seed
Run the application:
$ php artisan serve
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.