
Welcome to my course. In this video, you can see what you are going to learn.
Upgrade the Laravel assets from Mix to Vite.
Install the Laravel Breeze package, run breeze:install, and run npm install and npm run dev to enable login and registration screens for your Laravel 9 admin panel.
Create models and migrations for role and permission in a Laravel 9 admin panel, including users, roles, and permissions tables with foreign keys and unique name constraints.
Create and seed the admin in a Laravel 9 app by defining user-role relationships, generating an admin seeder, and registering an initial admin user with a default role.
Create an admin middleware that checks user roles to grant access to the admin panel, add an isAdmin method to the user model, and register and test middleware in kernel.
Learn to create roles and permissions routes in a Laravel 9 admin panel, register resource routes, implement index methods, and build corresponding admin views for roles and permissions.
Create and manage roles and permissions in a Laravel 9 admin panel by adding index views, new role and permission buttons, and the corresponding create methods and forms.
Learn to implement delete functionality for roles and permissions in a Laravel 9 admin panel, including destroying records, handling session messages, and updating views and controllers.
Learn how to assign permissions to roles in a Laravel 9 admin panel, including loading all permissions, presenting them in a form, saving choices, and displaying highlighted selections.
Create a users index page in a Laravel 9 admin panel by building the users controller index, retrieving all users, and displaying names with roles and permissions and actions.
Update and assign roles to the user in a Laravel 9 admin panel, wiring edit and update actions, blade for editing, and a dedicated update request for validation.
Learn how to implement the delete user workflow in Laravel 9 by adding a destroy method to the user controller and wiring it from the index page.
Implement the index method in the post controller to display all posts in a table with their titles. Update the admin roles index and layout in preparation for policy-based permissions.
Implement a before policy to grant the admin role all post permissions in Laravel 9, allowing create and delete actions via authorization.
This is the course to take if you want to learn how to add user roles, levels, permissions, and an admin dashboard to your app.
The method I teach in this course will work on any version of Laravel. So, not only will it work on Laravel 9.
Here we are going to create all the work from scratch so without package.
So tag along and let's go for a nice ride!
In this course, you will learn how to create an admin panel with Laravel and Tailwind CSS. Learn how to create roles and permissions. Create Policy and make authorization. You are going to learn also how to create custom blade directives. We are going to create custom middleware for roles and protect routes.
Learn Laravel roles and permissions without packages. We are going to work also with Tailwind CSS and Alpinejs for designin the admin layout dashboard.
Create CRUD for Roles, Permissions.
Create Posts and also create the Post policy to authorize users based on user role permissions. The admin can assign roles to the user and also assign permissions to the role.
Learn Laravel 9 Roles and Permissions without package. Learn how to create admin panel in the easy way.