Skip to content

Commit

Permalink
Merge pull request #30 from radiate-framework/bugfix/policies
Browse files Browse the repository at this point in the history
added auth service provider
  • Loading branch information
BenRutlandWeb authored Oct 13, 2021
2 parents 6b6c808 + 1f2f0bd commit dae791a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace Plugin\Providers;

use Radiate\Foundation\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
//
];

/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();

//
}
}
1 change: 1 addition & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
$app->register(Radiate\View\ViewServiceProvider::class);
$app->register(Radiate\WordPress\WordPressServiceProvider::class);

$app->register(Plugin\Providers\AuthServiceProvider::class);
$app->register(Plugin\Providers\EventServiceProvider::class);
$app->register(Plugin\Providers\PluginServiceProvider::class);
$app->register(Plugin\Providers\RouteServiceProvider::class);
Expand Down

0 comments on commit dae791a

Please sign in to comment.