What are Laravel Action Classes and How to use them?

What are Laravel Action Classes and How to use them?
  1. RegisterNewUser
  2. LoginUser
  3. UpdateUserPassword
  4. UpdateUserProfile
  1. RegisterNewUser
  • app/Actions/RegisterNewUser.php
  • php artisan make:controller UserRegisterController
Laravel Action classes
Laravel action class
  • app/Actions/UpdateUserPassword.php
  • php artisan make:controller ForgotPasswordController
  • php artisan make:request UserForgotPasswordRequest

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Reza Khademi

Reza Khademi

I really love to learn new technologies and make great things with Laravel and React(NextJS).