Create a leave type module in your HR management software
Create a leave type module in your HR management software
In this example your database name is laravel so now i connected this database overall completed .
now create your leave type route and add your sidebar or whatever . then open your routes.php file in your code editor from your project :
so your need 2 blade file in your application view file example : leavetype-index.blade.php and leavetype-create.blade.php
basically your need leavetype-edit.blade.php but your don't need create edit file i will explain how to you will be use edit system in your leavetype-create.blade.php so follow step by step
now your need create a migration file first open your terminal and run php artisan make:model LeaveType -m and then open your created migration file and then write this code see this example :
Then now again run your terminal php artisan migrate and then create a controller where your will write a processing method run this command in your terminal php artisan make:controller LeavetypeController and then write this all method see this example file -
Then use your compact variable in your blade file i hope you will be use passing variable . if you like this tutorial please comment your whatever.
Thank you so much .