- Review system: ReviewController (store/update/destroy), ReviewPolicy, Review model boot() hooks, review form with Alpine.js (spoiler toggle, edit/delete UX) - Search autocomplete: Alpine.js searchWidget in nav with 300ms debounce, keyboard navigation, 6-result dropdown - SEO: og:image, twitter:card in layout; og sections + Schema.org VideoGame JSON-LD on game show pages - Custom lists: UserList/UserListGame models, ListController, ListPolicy, lists index/show views, Add-to-List button on game pages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
675 B
PHP
30 lines
675 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Models\UserGame;
|
|
use App\Policies\UserGamePolicy;
|
|
use Illuminate\Support\Facades\Gate;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Gate::policy(UserGame::class, UserGamePolicy::class);
|
|
Gate::policy(\App\Models\Review::class, \App\Policies\ReviewPolicy::class);
|
|
Gate::policy(\App\Models\UserList::class, \App\Policies\ListPolicy::class);
|
|
}
|
|
}
|