Skip to content

Commit

Permalink
fixed facade func
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeeljavaid committed Feb 9, 2018
1 parent b13d114 commit 1bb4f27
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/Facade/Timezones.php

This file was deleted.

13 changes: 13 additions & 0 deletions src/Facades/TimezonesFacade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php namespace Nabeeljavaid\Timezones\Facades;

use Illuminate\Support\Facades\Facade;

class TimezonesFacade extends Facade {

protected static function getFacadeAccessor()
{
//return 'Nabeeljavaid\Timezones\Timezones';
return 'timezone';
}

}
Empty file modified src/Timezones.php
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions src/TimezonesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function register()
// Controllers
$this->app->make('Nabeeljavaid\Timezones\Controllers\TimezonesController');

$this->app->bind('grid', function($app) {
return new Grid();
$this->app->bind('timezone', function($app) {
return new \Nabeeljavaid\Timezones\Timezones;
});
}
}

0 comments on commit 1bb4f27

Please sign in to comment.