Skip to content

This project showcases a comprehensive implementation of authorization and middleware in a Laravel application. The focus is on demonstrating how to manage user permissions and protect routes using Laravel’s built-in authorization features and custom middleware.

Notifications You must be signed in to change notification settings

priyankasingh2907/LaravelAutherisation

Repository files navigation

// https://github.com/user-attachments/assets/24ea7125-d4c2-44ff-a3e2-7fcc374d39d0

autherization.mp4

Laravel Authorization & Middleware Project

This project showcases a comprehensive implementation of authorization and middleware in a Laravel application. The focus is on demonstrating how to manage user permissions and protect routes using Laravel’s built-in authorization features and custom middleware.

Tech Stack

  • User Authentication: Utilizes Laravel's authentication system to manage user registration, login, and logout processes.

  • Role-Based Access Control (RBAC): Implements RBAC to restrict access to specific routes and functionalities based on user roles (e.g., Admin, Editor, Viewer).

  • Custom Middleware: Develops custom middleware to enforce various checks and conditions before granting access to certain parts of the application.

  • Policy Classes: Uses policy classes to authorize actions on specific models, ensuring fine-grained control over user permissions.

  • Route Protection: Applies middleware to routes and route groups to secure the application endpoints.

  • Dynamic Permissions: Allows for dynamic assignment of permissions to roles and users, providing flexibility in managing access control.

Features

  • Laravel Framework: The primary framework used for building the application.
  • Blade Templating: For creating dynamic and reusable views.
  • Blade Templating: For creating dynamic and reusable views.
  • Composer: Dependency management tool for PHP, used to install Laravel packages.
  • Artisan: Laravel's command-line interface for managing the application.

Installation

1.Clone the repository:

git clonehttps://github.com/priyankasingh2907/ajaxCurdLaravel
cd laravel-crud-ajax

2.Install dependencies:

composer install
npm install

3.Start the development server:

php artisan serve

4.Configure the database in the .env file and run migrations:

php artisan migrate

Usage

Navigate to http://localhost:8000 in your web browser to access the application. Use the intuitive interface to create, read, update, and delete records dynamically without page reloads.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

About

This project showcases a comprehensive implementation of authorization and middleware in a Laravel application. The focus is on demonstrating how to manage user permissions and protect routes using Laravel’s built-in authorization features and custom middleware.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published