Download the PHP package bjitgroup/reusable-lib-laravel without Composer
On this page you can find all versions of the php package bjitgroup/reusable-lib-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bjitgroup/reusable-lib-laravel
More information about bjitgroup/reusable-lib-laravel
Files in bjitgroup/reusable-lib-laravel
Package reusable-lib-laravel
Short Description A BJIT Reusable Laravel Package
License MIT
Informations about the package reusable-lib-laravel
BJIT Reusable Library Package
This is the reusable library package for Laravel. There are some reusable modules.
Features
- Boilerplate Structure
- Auth Module
- Sample Module
- Permissions and Roles Module
- Blog Module
- Certralized Multiple File
- Notifications (Email, Database and Push)
The Reusable Library Package is a lightweight Laravel package.
Installation
The Reusable Library requires
- Laravel v8+ to run.
- enable the "exec" function in php.ini
- Composer 2+(Recommended)
Install the Laravel project by following this link Laravel Document or use the below command:
Install the Reusable Library package. Use the below command:
Configure the .env file
Confirm the database connection The correct APP_URL must be specified in the.env file. For example,
To install the reusable library package, use the below command:
Verify the deployment by navigating to your server address in your preferred browser. Use the below command:
For Websocket
If you choose push notification while setting up the reusable library, you have to run the below command:
To get Open API (Swagger) documentation
- Click on one of your preferred browsers.
- Copy localhost:8000/api/documentation and paste it in the browser's url.
File Structure
File structure flow is as follow
- Route - Configure the route path.
- Controller - Write code as simply as possible in the controller, and call Request Class in the method parameter.
- Request - Form validation is required in this class.
- Service - Write business logic and response data (API).
- Repository - Create, retrieve, update, and delete are actioned in this section.
- Resource - Return the response from service in this section and format it if necessary.
To generate the required files for the structure, use the below command:
- m => migration
- s => seed
- f => factory
This -mfs --all can be used at the end of the above command.
To remove a specific module (all files), use the below command:
To remove the reusable library package, use the below command:
License
The Laravel framework is open-sourced software licensed under the MIT license.