Installation
Upgrading from 1.x? See the Upgrade Guide.
Requirements
The qore-admin-base package requires a fresh Laravel installation:
composer create-project laravel/laravel project-name
cd project-nameAdd the private package repositories:
composer config repositories.filament composer https://packages.filamentphp.com/composer
composer config repositories.dolphiq composer https://dolphiq.repo.packagist.com/packages/Configure your environment to use the correct database connection:
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=database_name
DB_USERNAME=db
DB_PASSWORD=db@123Installation
- Install the package via composer:
composer require qore-works-business/qore-admin-base:^v2.0 --with-all-dependenciesTip: The
--with-all-dependenciesflag ensures Composer can update existing packages to resolve any dependency conflicts.
- Run the artisan install script:
php artisan qore-admin-base:installThe installer will prompt you to install recommended development packages. To skip the prompt and automatically install them:
php artisan qore-admin-base:install --dev-packages- Install npm dependencies and build frontend assets:
npm install
npm run buildOptional Configuration
Publish and run the provided seeders. Note: This will overwrite your DatabaseSeeder.php file.
php artisan vendor:publish --tag="qore-admin-base-seeders" --force
php artisan db:seedPublish the translations:
php artisan vendor:publish --tag="qore-admin-base-translations"Publish the views:
php artisan vendor:publish --tag="qore-admin-base-views"Updating Existing Projects
For existing projects, see the Commands page for maintenance commands:
qore-admin-base:publish-stubs- Update default stub files (tests, config)qore-admin-base:update-composer-scripts- Add missing composer scripts
Recommended Development Packages
The --dev-packages option installs the following packages:
barryvdh/laravel-ide-helper- IDE autocompletionitsgoingd/clockwork- Debugging and profilinglarastan/larastan- Static analysispestphp/pest- Testing frameworkpestphp/pest-plugin-laravel- Laravel-specific Pest helperspestphp/pest-plugin-livewire- Livewire-specific Pest helpersqore-works-business/pest-plugin-qore- Qore-specific Pest helpers
If you prefer to install them manually:
composer remove phpunit/phpunit --dev --no-update
composer require barryvdh/laravel-ide-helper itsgoingd/clockwork larastan/larastan pestphp/pest pestphp/pest-plugin-laravel pestphp/pest-plugin-livewire qore-works-business/pest-plugin-qore --no-update --dev
composer update
php ./vendor/bin/pest --init