'Laracel api resource Conditional Attributes not working, when processing Auth::check()
Solution 1:[1]
A simple solution would be doing it in web.php, cause api.php do nothing with auth.
Route::prefix('api')->middleware('auth')->group(function() {
Route::apiResource('/explore/gallery', App\Http\Controllers\PostController::class);
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | James WOng |


