Create a Department module in your laravel application for latest version
Create a Department module in your laravel application for latest version
Hey , welcome to my blog.
Create a department module in your laravel 9 application for easy way follow this blog step by step .
First open your existing project or create a new laravel project in your any text editor like vscode then run your project in your any useable browser or whatever so then open a terminal in your laravel application then run this command and create a department model and migration file : php artisan make:model Department -m
Then write your specific column name in your department migration file like this example:
Then run this command and migrate this table php artisan migrate
Then create Departmet Controller run this command in your terminal php artisan make:controller DepartmentController
and then write this all method in your DepartmentController
and Then create some route for method wise see this route example
So Now we need blade file so create some blade file example index and create and edit file then if you create all blade file then past this code in your index file .
Then create code copy and then past your create blade file .
Then open your browser and test this data submit if overall worked then copy this edit file code and then past your edit file this code .
Then click the edit button and fill all required fields and then submit if overall summited successfully that's fine .
So our work is completed . if you like this post, if you facing any problem or bugs please comment me and share this post.
Thank you so much.

Thanks for your help