This is a simple min-crm application consists of two models, Company and Employee and the relation between two models is one to many. One Company has many Employees.
- PHP version 8.1.0
- Laravel version ^9.19
git clone https://github.com/Elsayed93/pharmacies-products.git
If you want SSL
git clone [email protected]:Elsayed93/pharmacies-products.git
composer install
cp .env-example .env
php artisan migrate
php artisan key:generate
Because We use Laravel 9 and it use Vit tool bundler by default. So To avoid vite manifest file not found error, Please run these commands:
npm install
npm run dev
php artisan serve
We Store Company Logo image in storage/app/public/companies directory. To make this directory accessible in public folder, Please run this command:
php artisan storage:link
Notice: Please Create the companies directory manually at the beginning and save default image for companies in it and rename this image company.png to render default images for companies.
- There is AdminSeeder to enable an admin to login.
- There are another two seeders for Companies and Employees (For Testing Purposes), Feel free to seed data if you want to fill the application with fake data.