Files
2026-03-11 10:11:30 +01:00

54 lines
1.4 KiB
PHP

<?php
use App\Models\User;
use App\Policies\CategoryPolicy;
use App\Policies\ForumPolicy;
use App\Policies\PostPolicy;
use App\Policies\ThreadPolicy;
use TeamTeaTime\Forum\Models\Category;
use TeamTeaTime\Forum\Models\Post;
use TeamTeaTime\Forum\Models\Thread;
return [
/*
|--------------------------------------------------------------------------
| Policies
|--------------------------------------------------------------------------
|
| Here we specify the policy classes to use. Change these if you want to
| extend the provided classes and use your own instead.
|
*/
'policies' => [
'forum' => ForumPolicy::class,
'model' => [
Category::class => CategoryPolicy::class,
Thread::class => ThreadPolicy::class,
Post::class => PostPolicy::class,
],
],
/*
|--------------------------------------------------------------------------
| Application user model
|--------------------------------------------------------------------------
|
| Your application's user model.
|
*/
'user_model' => User::class,
/*
|--------------------------------------------------------------------------
| Application user name
|--------------------------------------------------------------------------
|
| The user model attribute to use for displaying usernames.
|
*/
'user_name' => 'username',
];