teampay / voyager-api-admin
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:CSS
Requires
- arrilot/laravel-widgets: 3.12
- tcg/voyager: 1.1.2
This package is not auto-updated.
Last update: 2024-05-17 18:50:18 UTC
README
This package install source code for laravel api project and install voyager admin package
Installation
At the first you need have empty laravel project. Next step is Either run
php composer.phar require teampay/voyager-api-admin
or add
"teampay/voyager-api-admin": "dev-master"
to the require section of your composer.json
file.
Next you need update composer packages by command:
composer update
This command install needing package to empty laravel project.
Basic usage
- Add
Teampay\VoyagerApiAdmin\VoyagerApiAdminServiceProvider::class
to app/config.php file at the section providers. - Run the command at root directory project
php artisan vendor:publish --force
and choose Provider: Teampay\VoyagerApiAdmin\VoyagerApiAdminServiceProvider
This command copy need files to you project. Be carefully, this command overwrite some files at project.
In the next step you must configure project config file (.env). You must editing database configuration and application url (APP_URL). If you did this earlier, you can skip this step. Then you must run commands:
php composer.phar dump-autoload && php artisan migrate:fresh --seed
This commands create needed database structure and paste some information to database. Next step is include file routes/voyager-admin-api-routes.php to file routes/web.php
//... include __DIR__ . '/voyager-admin-api-routes.php'; //...
Create symlink to storage directory. Command for this is:
php artisan storage:link
That is finish. For access to admin panel go to the link http(s)://example.com/admin
Access for admin: email: admin@admin.com password: password