How to install in Existing Laravel Project
Mybizna is an open-source ERP (Enterprise Resource Planning) solution for Laravel. It is developed using Laravel which is a web application framework with expressive, elegant syntax.
Prerequisites
Before proceeding with the installation, make sure you have the following prerequisites:
PHP (version 8.1 or higher)
Composer (Dependency Manager for PHP)
MySQL or any other compatible database server
Step 1
Install the required package To install the Laravel ERP package, run the following command:
Step 2
Configure the database Open the .env
file in the root directory of your project and modify the following lines to match your database credentials:
Step 3
Edit the User model Open the app/Models/User.php
file and add the following lines inside the protected $fillable
array:
Step 4
Add class and trait to the User model Add the following lines at the top of the app/Models/User.php
file:
Inside the User
model class, add the following line:
Step 5
Publish the following;
1 is for generating the cache table used in managing system cache.
2 is for generate the session table used for managing system session using database.
3 is for publishing santrum migration files to be used to login to Mybizna ERP API.
4 is for publishing assets and database migration for adding username, phone, and email to the users table in the database.
5 is for publishing permissions configuration provided by the Spatie/Permission package.
Add Sanctum's middleware to your api
middleware group within your application's app/Http/Kernel.php
file:
Step 6
Run database migrations To create the necessary database tables, run the following command:
Step 7
If no user exist, create a dummy user called John Doe Using tinker:
Step 8
Enable Laravel ERP modules Enable the Laravel ERP modules using the following command:
Step 9
Run additional Laravel ERP migrations Run the following command to perform additional migrations specific to Laravel ERP:
Step 10
Generate an application key Generate an application key by running the following command:
Step 11
Start the development server Start the Laravel development server using the following command:
open the link http://127.0.0.1:8000/manage
Login using Username: johndoe and Password johndoe
Last updated