MOTOSHARE 🚗🏍️

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

FULL CRUD OPERATION IN LARAVEL

Uncategorized

Frist of all, we have to know and understand meaning of crud. We going to understand about crud.

The function and , the full-form of Crud:-
 C - create 
 R - read
 U - update
 D - delete 

 

Because these four functions are so universal to programming , each of the elements of CRUD is represented in virtually every single programming language that deals with databases

At first we have to write = create-project–prefer-dist laravel/laravel blog “5.8.” in comand promt
to reate project.

1- then we have to open vs code and select zampp/ htdocs/file_name and open project in vs code

2 – after thar open terminal in vs code and write -php artisan make:MODELname-a , and press enter
after this all three things model, controller and resource .

 NOTE: the fristletter of model name shuld be in capital letter and shuld start with alphabet ony

3 – then we have to set database with app and migrate the table by code – php artisan migrate .on
vs code terminal.

4 – then we have to set route for that we use by code
e.g Route::(‘wiz’,WizContreller)

5 – after that we go to wizcontroller and derive all the function one by one

6 – after create all the blade view

index.blade.php   
create.blade.php
parent.blade.php   
edit.blade.php 
view.blade.php

7 – and after that define all thbe blade file one by one

8 – Thats’s all for us for creating a project in laravel . Enter code – php artisan serve in terminal of
vs code and enjoy your project

bikash K
Latest posts by bikash K (see all)
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x