2017 © Pedro Peláez
 

library voyager-api-admin

image

lenboard/voyager-api-admin

  • Wednesday, July 4, 2018
  • by lenboard
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel api source with voyager admin package

This package install source code for laravel api project and install voyager admin package, (*1)

Installation

At the first you need have empty laravel project. Next step is Either run, (*2)

php composer.phar require lenboard/voyager-api-admin

or add, (*3)

"lenboard/voyager-api-admin": "dev-master"

to the require section of your composer.json file., (*4)

Next you need update composer packages by command:, (*5)

composer update, (*6)

This command install needing package to empty laravel project., (*7)

Basic usage

  1. Add Lenboard\VoyagerApiAdmin\VoyagerApiAdminServiceProvider::class to app/config.php file at the section providers.
  2. Run the command at root directory project
php artisan vendor:publish --force

and choose Provider: Lenboard\VoyagerApiAdmin\VoyagerApiAdminServiceProvider, (*8)

This command copy need files to you project. Be carefully, this command overwrite some files at project., (*9)

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:, (*10)

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, (*11)

//...
include __DIR__ . '/voyager-admin-api-routes.php';
//...

Create symlink to storage directory. Command for this is:, (*12)

php artisan storage:link

That is finish. For access to admin panel go to the link http(s)://example.com/admin, (*13)

Access for admin: email: admin@admin.com password: password, (*14)

The Versions

04/07 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Evgeniy