Create a leave type module in your HR management software

   Create a leave type module in your HR management software





If you working now a hr management software so leave type is your important part . how to you will be create a leave type  i will explain your only need step by step follow . so first you create a new laravel application in your computer then open your project any code editor and then run this project in your computer browser and then create a database  in your localhost/phpmyadmin and then connect your database in your laravel application please see this example :
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 .
Next Post Previous Post
No Comment
Add Comment
comment url