diff --git a/app/Models/Category.php b/app/Models/Category.php new file mode 100644 index 0000000..8e22fb0 --- /dev/null +++ b/app/Models/Category.php @@ -0,0 +1,15 @@ + get_stylesheet_directory_uri() . '/assets/', +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..ad10a27 --- /dev/null +++ b/config/auth.php @@ -0,0 +1,77 @@ + [ + 'guard' => 'web', + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | here which uses session storage and the Eloquent user provider. + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + + # 'api' => [ + # 'driver' => 'session', + # 'provider' => 'users', + # ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication drivers have a user provider. This defines how the + | users are actually retrieved out of your database or other storage + | mechanisms used by this application to persist your user's data. + | + | If you have multiple user tables or models you may configure multiple + | sources which represent each model / table. These sources may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "wordpress", "radiate" + | + */ + + 'providers' => [ + # 'users' => [ + # 'driver' => 'wordpress', + # 'table' => 'users', + # ], + + 'users' => [ + 'driver' => 'radiate', + 'model' => \Theme\Models\User::class, + ], + ], +]; diff --git a/functions.php b/functions.php index b484700..42ad195 100644 --- a/functions.php +++ b/functions.php @@ -46,13 +46,9 @@ ]); $app->routeMiddleware([ - 'auth' => Radiate\Auth\Middleware\Authenticate::class, - 'ajax' => [ - // - ], - 'api' => [ - // - ], + 'auth' => Radiate\Auth\Middleware\Authenticate::class, + 'auth.basic' => Radiate\Auth\Middleware\AuthenticateWithBasicAuth::class, + 'signed' => Radiate\Routing\Middleware\ValidateSignature::class, ]); @@ -68,18 +64,58 @@ */ $app->register(Radiate\Auth\AuthServiceProvider::class); +$app->register(Radiate\Cache\CacheServiceProvider::class); +$app->register(Radiate\Database\DatabaseServiceProvider::class); $app->register(Radiate\Foundation\Providers\FormRequestServiceProvider::class); $app->register(Radiate\Mail\MailServiceProvider::class); $app->register(Radiate\Routing\RoutingServiceProvider::class); +$app->register(Radiate\Schedule\ScheduleServiceProvider::class); $app->register(Radiate\Validation\ValidationServiceProvider::class); $app->register(Radiate\View\ViewServiceProvider::class); $app->register(Radiate\WordPress\WordPressServiceProvider::class); $app->register(Theme\Providers\EventServiceProvider::class); $app->register(Theme\Providers\RouteServiceProvider::class); +$app->register(Theme\Providers\ScheduleServiceProvider::class); +$app->register(Theme\Providers\ThemeServiceProvider::class); $app->register(Theme\Providers\WordPressServiceProvider::class); + +/** + * ----------------------------------------------------------------------------- + * Class Aliases + * ----------------------------------------------------------------------------- + * + * This array of class aliases will be registered when this application + * is started. However, feel free to register as many as you wish as + * the aliases are "lazy" loaded so they don't hinder performance. + * + */ + +$app->aliases([ + 'App' => \Radiate\Support\Facades\App::class, + 'Arr' => \Radiate\Support\Arr::class, + 'Auth' => \Radiate\Support\Facades\Auth::class, + 'Cache' => \Radiate\Support\Facades\Cache::class, + 'Collection' => \Radiate\Support\Collection::class, + 'Config' => \Radiate\Support\Facades\Config::class, + 'DB' => \Radiate\Support\Facades\DB::class, + 'Event' => \Radiate\Support\Facades\Event::class, + 'File' => \Radiate\Support\Facades\File::class, + 'Hash' => \Radiate\Support\Hash::class, + 'Http' => \Radiate\Support\Facades\Http::class, + 'Mail' => \Radiate\Support\Facades\Mail::class, + 'Option' => \Radiate\Support\Facades\Option::class, + 'Request' => \Radiate\Support\Facades\Request::class, + 'Route' => \Radiate\Support\Facades\Route::class, + 'Str' => \Radiate\Support\Str::class, + 'URL' => \Radiate\Support\Facades\URL::class, + 'Validator' => \Radiate\Support\Facades\Validator::class, + 'View' => \Radiate\Support\Facades\View::class, +]); + + /** * ----------------------------------------------------------------------------- * Run The Application