How to pass data with routing ?

0 votes
How can i pass the data that user entered in laravel?
Mar 18 in Laravel by kartik
• 10,760 points
38 views

1 answer to this question.

0 votes

First you can follow how to pass param of URL-How to pass URL param in Laravel?​

You have to go to routes folder of Laravel then web.php and in web.php you have to create routes to the page you want. Here i have created route for page youtube.

 Then go to rosource and then view and then youtube page and on youtube page type the syntax as shown in image below

 Now go the the local browser and type localhost/peter (NOTE here peter is parameter you can add your own parameter)

answered Mar 18 by Niroj
• 21,680 points

Related Questions In Laravel

0 votes
1 answer

How to pass data through URL and access through controller in Laravel?

Hello, You can  first refer how to  Create controller through ...READ MORE

answered Mar 18 in Laravel by Niroj
• 21,680 points
201 views
0 votes
1 answer

How to pass CSRF token with ajax request in Laravel?

Hey, In between head, tag put <meta name="csrf-token" ...READ MORE

answered Mar 24 in Laravel by Dey
96 views
0 votes
1 answer

How to pass URL param in Laravel?

Hello, First you have to go to routes ...READ MORE

answered Mar 18 in Laravel by Niroj
• 21,680 points
96 views
0 votes
1 answer

How to validate my application incoming data? Explain validations in laravel?

Hey @kartik, In Programming validations are a handy ...READ MORE

answered Mar 23 in Laravel by Niroj
• 21,680 points
55 views
0 votes
1 answer

What is Laravel framework? Why one should use Laravel?

Laravel is a PHP web-framework; it utilized ...READ MORE

answered Mar 17 in Laravel by Niroj
• 21,680 points
64 views
0 votes
1 answer

How to download and install Lavavel framework?

Hey @kartik, First you must have xampp install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 21,680 points
60 views
0 votes
1 answer

How can we get started with Laravel through Xampp?

Hii, First you need to start Apache and ...READ MORE

answered Mar 17 in Laravel by Niroj
• 21,680 points
28 views
0 votes
1 answer

What are the important directories used in a common Laravel application

Hey @Kartik. Directories used in a common Laravel ...READ MORE

answered Mar 17 in Laravel by Niroj
• 21,680 points
32 views
0 votes
1 answer

How to make a new page with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 21,680 points
70 views
0 votes
1 answer

How to make anchor tag with routing using Laravel?

Hey @kartik, First you have to go to ...READ MORE

answered Mar 18 in Laravel by Niroj
• 21,680 points
394 views