Skip to content

Installation

Edwin Wong edited this page Apr 21, 2018 · 8 revisions

To install this package you will need:

  • PHP ^7.0
  • Laravel ^5.5

Modify your composer.json file and run composer update to include the latest version of the package in your project.

composer require edwinwong90/larasang

Laravel

Run this Artisan command, this will generate a config file into config/larasang.php

php artisan vendor:publish --provider="Larasang\LarasangServiceProvider"

Edit your config/app.php in the array providers, add in these 3 lines of services

    ...

    Larasang\LarasangServiceProvider::class,
    Larasang\ResponseMacroServiceProvider::class,
    Larasang\EventServiceProvider::class,
],

Edit your app/Providers/RouteServiceProvider.php

public function boot()
{
    \Larasang\Larasang::routes();

    parent::boot();
}

And that's it, you are good to go :)

Clone this wiki locally