At beginning i was not knowing where and how i shall start off. Thanks for the tutor. Hope to see more videos. As a late beginner i dont have any questions...
In Laravel, the api.php file serves as a dedicated route file specifically designed for defining API routes within your application. It's intended for API endpoints that return JSON or other non-HTML responses and allows for separate configuration and organization of routes compared to the web.php route file
When we share our application data for others. Then we can make Restful API. Its configure in routes/api.php. Basically we allow just POST request from users.
I am using this route for getting the user id after login/signup Route::get('/shop/{id}',[Cars::class,'shop']); But here the links of the shop page is not working. I have to use ../ and then links work fine. i.e normal route for the image is public/images/Testimonial/pic1.jpg but now I have to use ../public/images/Testimonial/pic1.jpg for the image. So kindly if you know so tell me what's the problem with my code.
As long as what you're referencing is in the public folder you can use something like this Here is reference to the asset helper stackoverflow.com/questions/32705709/laravel-5-assets-links
Hi Lara, I am also a beginner with this course I really appreciate this course, please give me some suggestions which would help me in future while learning this course it would be great help .
I am following exactly as you said but I am having to access my "/" or root by using "public" in the url which is quite odd. Moreover, routing is not exactly working in my case as well despite following every single step.
if you do Route::get('/{name}' to print the anything typed on url you cant do Route::view('/about','about'); if you ran this route then without going to the about page your home page will just print about..... What will be the solution for this?
Route::get('/{name}', function ( $name) { return view('welcome', ['name'=>$name]); }); Route::view("contact", 'contact'); if your code like this then write the second route before first route then it work
Only RUclips tutorial which teaches only what beginners want.... thanks mate!
Llllll
Lllllllllllllllllllllpllllllll
Lllllllll
Pl
L
Plllllllllllllllllpllllllllllll pul oo oo oo l lo boo
Lllllllll
Oo oo oo oo oo oo l AA
excellent tutorial. just what a beginner needs !
At beginning i was not knowing where and how i shall start off. Thanks for the tutor. Hope to see more videos. As a late beginner i dont have any questions...
to connect your api URLs. For example when using the front-end from another language such as React
simple, sweet, helpful....Thank you!
In Laravel, the api.php file serves as a dedicated route file specifically designed for defining API routes within your application. It's intended for API endpoints that return JSON or other non-HTML responses and allows for separate configuration and organization of routes compared to the web.php route file
super and super explanation thanks alot
You are just rock 💥
straight explanation u are the best man keep up....we need more about laravel
excellent videos & the way you are teaching superb.
THANXX FOR MAKING SUCH A WONDERFULL TUTORIAL BCOZ OF YOU GUYS BEGINNERS HAVE HOPE TO SUCCEED
just learning laravel this helped me so much, thanks!!!!!
Nice & great tutorial I have ever seen. Recommend to beginners 👍 good job 👏
Glad you liked it!
Nice video, very informative
When we share our application data for others. Then we can make Restful API.
Its configure in routes/api.php. Basically we allow just POST request from users.
Nice one! Have learnt alot on routings.
thinak you sir for your precious time for us
i gusse the api page is used for mobile programming languages like anguler vuejs ....etc
Hi, what visual studio code exstension did you use to have laravel Facede/method autocomplete suggestions? Thank you.
when he said maybe my anchor tags might be a little big ugly that reminded me of my ex...
so good classes
I have subscribe your channel
The routes defined in api.php are discretely reserved for api that interact with our application to feed them with data
What is reverse routing in Laravel ?
Can explain it's
good content so far
I am using this route for getting the user id after login/signup
Route::get('/shop/{id}',[Cars::class,'shop']);
But here the links of the shop page is not working. I have to use ../ and then links work fine. i.e normal route for the image is public/images/Testimonial/pic1.jpg but now I have to use ../public/images/Testimonial/pic1.jpg for the image.
So kindly if you know so tell me what's the problem with my code.
As long as what you're referencing is in the public folder you can use something like this Here is reference to the asset helper stackoverflow.com/questions/32705709/laravel-5-assets-links
Thanks alot but i have a proplem ,when I made the passing data route it no longer differentiate between the passed data and the views pages name
what planet are you from.... Thanks for the help.... its being 18 hours since i started looking for solution.... Thank you again
rename it tru routes folder --> web.php, thank you for this tutorial! really excellent one|
you did a good job!
Hi Lara, I am also a beginner with this course I really appreciate this course, please give me some suggestions which would help me in future while learning this course it would be great help .
but shouldnt data be passed via controllers instead of directly from routes to views?
What about reverse routing?
I am following exactly as you said but I am having to access my "/" or root by using "public" in the url which is quite odd. Moreover, routing is not exactly working in my case as well despite following every single step.
You have different version probably
Can you put subtitles for novice English speakers?
Vai First view and how can i talk to you?
anilsidhu.in my insta
api.php defines and routes API routes.
Thank you Sir
if you do Route::get('/{name}' to print the anything typed on url you cant do Route::view('/about','about'); if you ran this route then without going to the about page your home page will just print about..... What will be the solution for this?
Hey, Did you get any solution?
What is a difference in Login@index vs Login::class, 'index' in Laravel
Thank you so much.
Thank u
api use for api roughting for a api path
iam using the route but sir only the first route are working and the others are not working show not Found 404 whta is the problem please
Route::get('/{name}', function ( $name) {
return view('welcome', ['name'=>$name]);
});
Route::view("contact", 'contact');
if your code like this then write the second route before first route then it work
web.php handle app web pages and have sessions otherwise the api.php not have sessions and handle restapis
how to insert customer details in customer table and product details in product table
Wait for some video, i will make a video on it
My localhost:8000 port not working
sir