Skip to content

How to setup Laravel 10 Inventory app (IMS)

You should turn on error debug in config/app. php. See https://laravel.com/docs/10.x/errors

Here is a quick setup guide. You would need set up a few things, but almost all of them are database settings.

1. Create a new database “ims-phpgrid” and execute “ims-phpgrid.sql” from database folder.

2. Create a new database “inventory-management” and execute “inventory_management.sql” from database folder.

3. Change database settings in .env file (yes, this file name starts with a dot)

    APP_URL=https://ims-phpgrid.dev

    DB_CONNECTION=mysql
    DB_HOST=localhost
    DB_PORT=3306
    DB_DATABASE=ims-core
    DB_USERNAME=root
    DB_PASSWORD=root

    APPURL should match your domain. The example has it as "ims-phpgrid.dev".

4. Update the following database settings in config/database.php

    mysql
    im

5. Update database settings in public/phpGrid/conf.php to use inventory management database.

    For example:

    define('PHPGRID_DB_HOSTNAME','localhost'); // database host name
    define('PHPGRID_DB_USERNAME', 'root');   // database user name
    define('PHPGRID_DB_PASSWORD', 'root'); // database password
    define('PHPGRID_DB_NAME', 'inventory-management'); // database name
    define('PHPGRID_DB_TYPE', 'mysql'); // database type
    define('PHPGRID_DB_CHARSET','utf8mb4');

6. Set web root to ims-phpgrid/public as the web root. This is not a phpGrid requirement but Laravel one, very important for Laravel session management.
 
    Also See docs\wwwroot.png illustration

7. Make sure PHP has version 8.1+ as also a requirement of Laravel 10.

If you need more help, please submit a ticket in our ticket system please. Happy gridding!


Feedback and Knowledge Base