Skip to content

Installation

joesama edited this page Apr 27, 2018 · 3 revisions

Installation Guideline

Step 1 : Getting The Code

You can get the code via composer as below:

composer require joesama/vuegrid

Step 2 : Register The Service Provider

For Laravel 5.4 user, to bind the packages you need to register service provider in your config/app.php file.

'providers' => [
   '...',
   Joesama\VueGrid\VueGridProvider::class,
];

For Laravel 5.5+ you can auto-register the package with the framework.

Step 3 : Name It As You Like

In your config/app.php file , define VueGrid alias at the

'aliases' => [

   'VueGrid' => Joesama\VueGrid\Services\Grid::class
];

For Laravel 5.5+ you can auto-register the alias with the framework.

Step 4 : Overriding View, Config & Asset

Adding flexibility in usage, you need to publish all the view, config, asset. php artisan vendor:publish will do the trick

Step 5 : Appending CSS & JS

Next step, put @stack('vuegrid-css') in your header (where you define CSS) & @stack('vuegrid-js') and in your footer (where you define JS)

Step 6 : Build Your First Vuegrid

Follow this Guideline To Build Your VueGrid