Download the PHP package incrusio21/laravel-erp without Composer
On this page you can find all versions of the php package incrusio21/laravel-erp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-erp
Description
This package allows a Laravel to work like erpnext that have doctype and can work with multiple HTTP domains.
this package inpired from https://github.com/frappe/frappe
(most likely copy paste frappe and change programing language to php) and
learn from https://github.com/gecche/laravel-multidomain
to make laravel can work with multiple HTTP domains
Installation
Update your packages with composer update or install with composer install.
You can also add the package using composer require incrusio21/laravel-erp
and later
specify the version you want.
If yout want to work with multiple HTTP domains with this package. you needs a few more configuration steps than most Laravel packages.
Site Installation
To override the detection of the HTTP site in a minimal set of Laravel core functions at the very start of the bootstrap process in order to get the specific environment file.
Installation steps:
-
replace the whole Laravel container by modifying the following lines at the very top of the
bootstrap/app.php
file. - update the two application Kernels (HTTP and CLI).
At the very top of the app/Http/Kernel.php
file , do the following change:
Similarly in the app/Console/Kernel.php
file:
Make Public Link
A way to obtain multiple storage links could be the following.
Let us suppose to have two domains, namely site1.com
and site2.com
with associated storage folders
site/site1.com/public
and site/site2.com/public
.
-
call command link (delete folder link in public first):
- add this line to your
.htacces
:
it make you can call it like default storage and force to forbidden page if you try to access it from folder name