Migrations should be published in the following order:
Use the following command to ensure the right order:
Packages that are not installed are skipped.
php artisan vendor:publish --tag=core-migrations && php artisan vendor:publish --tag=data-profiling-migrations && php artisan vendor:publish --tag=crm-migrations && php artisan vendor:publish --tag=financial-migrations && php artisan vendor:publish --tag=ecommerce-migrations
Most projects contain a seeder called CompassSeeder
. The seeders provided by compass package should allows be allowed to run to add new menu items, permissions and necessary data for new functionality.
Normally the CompassSeeder is also called in the deployment script of the application in Laravel Forge. If that isn't the case, it should be added to ensure full compass functionality.
Compass Seeders should be run in the following order:
To make use of the sass and js files provided by the compass packages, the following steps need to be taken:
package.json
file."dependencies": {
"@noardcode/compass-core": "file:vendor/noardcode/compass-core",
"@noardcode/compass-side-panels": "file:vendor/noardcode/compass-side-panels",
"@noardcode/compass-tables": "file:vendor/noardcode/compass-tables",
"@noardcode/compass-forms": "file:vendor/noardcode/compass-forms",
}
npm install
to install the npm packages.resources/sass/app.scss
and resources/js/bootstrap.js
files.npm run prod
to compile the new assets.Example of the app.scss file:
@import '~@noardcode/compass-core';
@import '~@noardcode/compass-side-panels';
@import '~@noardcode/compass-tables';
@import '~@noardcode/compass-forms';
Example of the bootstrap.js file:
require('@noardcode/compass-core');
require('@noardcode/compass-side-panels');
require('@noardcode/compass-tables');
require('@noardcode/compass-forms');