Copy - Installation

Requirements

Installation

  1. Install the Copy package

    composer require yadda/enso-copy
    
  2. Publish copy configuration

    php artisan vendor:publish --provider "Yadda\Enso\Copy\EnsoCopyServiceProvider" --tag enso-config
    
  3. Run migrations

    php artisan migrate
    
  4. Add admin routes to routes/web.php

    EnsoCrud::crudRoutes('admin/copy', 'copy', 'admin.copy');
    
  5. Add json routes to your project. You may want to nest these inside a json url structure as they are intended as xhr routes.

    EnsoCopy::routes('copy', Yadda\Enso\Copy\Controllers\Json\CopyController::class, 'copy');;
    
  6. Add item to admin in the app/Providers/EnsoServiceProvider boot function.

    public function boot()
    {
       //...
    
       EnsoMenu::addItems([
           Config::get('enso.crud.copy.menuitem'),
       ]);
    }