I have a laravel application that allows both admins and customers to gain access to it and for each one of them will have specific permissions using 2 separated tables for each type of user to auth and 2 different guards. what I need now is to give customers access specific methods inside the controller and the admin have access to all methods.
class OrdersController extends Controller
{
public function __construct()
{
$this->middleware(['auth:client'])->only(['index', 'create', 'store', 'edit', 'printOrder']);
$this->middleware('auth:admin');
}
but it works fine for the client and it's not working for the admin
via Chebli Mohamed
Strange "water hack" burns 2lbs overnight
RépondreSupprimerOver 160 thousand men and women are using a simple and SECRET "liquids hack" to lose 1-2lbs every night as they sleep.
It is effective and works every time.
You can do it yourself by following these easy steps:
1) Grab a drinking glass and fill it up half glass
2) Now follow this crazy hack
and become 1-2lbs thinner as soon as tomorrow!