
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.
Add an is_admin column to the users table, run fresh migrations, and create an admin seeder to seed an admin user with is_admin = 1, then log in to verify.
Create the admin middleware, controller, and admin layout to guard routes in Laravel 9, register the middleware, and test admin‑only access that yields a 403 for non‑admins.
Create a new Laravel 9 project by initializing the app, installing dependencies with Composer and npm, running Artisan install, and configuring the database for an 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 the admin layout by building the admin view, header, and sidebar, reusing components and blade templates, and wire the admin controller, routes, and middleware for the index page.
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.
Create a single Laravel 9 role middleware that works for all roles, by adding a role check to the user model and applying it to routes for admin and writer.
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.
Learn how to display roles and permissions in a Laravel 9 admin panel, assign roles to users, and configure permissions to control access across the app.
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.
Explore building a Laravel 9 admin panel feature to store new roles and permissions, implementing a single form with name validation and a store method that redirects to the index.
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.
Create fake posts in a Laravel 9 admin panel by generating a model, controller, and factory, wiring a resource route, and displaying posts at /posts.
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.
Learn how to enforce roles and permissions to control who can create posts in a Laravel 9 admin panel, including validating input, storing data, and returning unauthorized responses.
Implement a before policy to grant the admin role all post permissions in Laravel 9, allowing create and delete actions via authorization.
Learn how to implement update and delete post permissions in a Laravel 9 admin panel using policies and role-based authorization, including conditional buttons and permission assignments.
Create a custom blade directive named admin by registering a blade if in the app service provider to check authentication and show the admin link only for admin users.
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.