Skip to content

Commit

Permalink
Overall improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed Jul 1, 2019
1 parent d42e797 commit 93d6214
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/Models/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getConfigItem()

public static function getResults()
{
$instance = new static;
$instance = new static();

try {
return $instance->newQuery()->get();
Expand Down
2 changes: 0 additions & 2 deletions modules/Platform/Policies/OptionPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Modules\Platform\Policies;

use App\Models\Option;

use Modules\Users\Models\User;

use Nova\Auth\Access\HandlesAuthorizationTrait;
Expand Down
2 changes: 1 addition & 1 deletion modules/Platform/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class AuthServiceProvider extends ServiceProvider
* @var array
*/
protected $policies = array(
'Modules\Platform\Models\Option' => 'Modules\Platform\Policies\OptionPolicy',
'App\Models\Option' => 'Modules\Platform\Policies\OptionPolicy',
);


Expand Down

0 comments on commit 93d6214

Please sign in to comment.