Skip to content

Commit

Permalink
Updated for Changes
Browse files Browse the repository at this point in the history
* Added the Include for including \Http\routes.php file
* Updated to \Http\TricksController from Tricks.
* Added make() function for the Controller to work.
  • Loading branch information
secrethash committed Jul 5, 2016
1 parent f2523d9 commit 80a3a47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/TricksterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TricksterServiceProvider extends ServiceProvider
public function boot()
{
// loading the routes
// require __DIR__ . "/HTTP/routes.php";
// require __DIR__ . "/Http/routes.php";
$this->publishes([
__DIR__.'./config/trickster.php' => config_path('trickster.php'),
]);
Expand All @@ -35,9 +35,11 @@ public function register()
$this->mergeConfigFrom(
__DIR__.'./config/trickster.php', 'trickster'
);
include __DIR__ . "/Http/routes.php";
$this->app->make('Secrethash\Trickster\Http\TricksController');
//
$this->app->bind('trickster', function($app) {
return new Trickster;
return new Http\TricksController;
});
}

Expand Down

0 comments on commit 80a3a47

Please # to comment.