Yes it's possible to run through Route:: but to run a view we need to create a specific URL whereas header should run automatically for all pages as a function that's why we can't restrict header with specific URL separately.
sir iska answer to nai pta mujhe but sir app jo question video ke end mai puchte hai uska next video mai answer b de do sir plzz🙏 aur sir apke tutorial bhut ache hote hai easy language mai expalin kerte ho sir keep it up sir
When I try to pass a dynamic data in the header component, I get a blank page instead of showing User's Headers Component. Any idea why is this happening
Can create a route to specific component, keeping in mind: 1.The structure of the route will be: Route::view('/compName', 'components/compName'); 2. any data passed to the component must be optional.
But I couldn't think of any application where we might need to create a route to components. The whole purpose is to remove redundant code and be able to reuse code in multiple locatoin.
sir vs code mai syntax highlighter ke liye konsa package hai?? Jo app Route:: suggestions de raha hai?? Also, thank you are making this amazing content, it is very easy to grasp.
Sir Kya components ko as a layout use kr karte ? Or layout ka code @yield('title') or @yield('content') ka use kr sakte he header and footer banane ke liye ?
small website hoga to waha component use nhi hota hai.. but bade website ho like ecommerce waha component bahot useful hote hai. q ki hame ek page multiple tym call karna padta hai
it is not working for me... there is no error but it is not displaying any results. My () works only but after when I pas () it doesn't work..... any solution please
In my code there show some error Please help me to figure out: Illuminate\Contracts\Container\BindingResolutionException Unresolvable dependency resolving [Parameter #0 [ $ComponentName ]] in class App\View\Components\Header (View: F:\laravel8\blog esources\views\users.blade.php)
I am getting this error Illuminate\Contracts\Container\BindingResolutionException Unresolvable dependency resolving [Parameter #0 [ $ComponentName ]] in class App\View\Components\Header (View: PATH\blog esources\views\about.blade.php)
Yes it's possible to run through Route:: but to run a view we need to create a specific URL whereas header should run automatically for all pages as a function that's why we can't restrict header with specific URL separately.
Thank you so much for creating such an awesome and valuable laravel video series😊😊😊
yes we can use it Route::view('header', 'components.header');
Awsome explanation, Thank for this amazing laravel series
Nice
thank you sir for giving best tutorial content
Yes it's possible to run through Route:: but to run a view we need to create a specific URL whereas header should run automatically for all pages as a function that's why we can't restrict header with specific URL separately.
sir iska answer to nai pta mujhe but sir app jo question video ke end mai puchte hai uska next video mai answer b de do sir plzz🙏 aur sir apke tutorial bhut ache hote hai easy language mai expalin kerte ho sir keep it up sir
Thank you bro
@@codestepbystep sir tell the answer of questions also.
the explanation is mindblowing thankyou sir
great (Y)
yes use it Route::view('header', 'components.header');
Thank u sir its really helpfull
Welcome
helpful video sir
Yes Sir, Route::view('about','components/header');
Really nice video :)
very nice tutorial, thanks
yes we can use the component as a view for that we have mention folder name before the component name
Bro.. new folder ka.. extension kon sa use kra.. hua... Hamne toh new component file create kra.. but koi alag sai... Highlights nhi hua kuch...
nice
yes we can use component as view using route::view("url","component.php"); but we should not use separate url for component. it's not a good practice
bro plz Answer your Questions...next video for better understand....ty
When I try to pass a dynamic data in the header component, I get a blank page instead of showing User's Headers Component.
Any idea why is this happening
aur sir thora slow slow video mn smjhya krye .. baki sir you are great
Hello @anil i see your video component in laravel and I tried it but I got an error, i follow all steps as per your video but i got error
Answer : Yes , You can call components file by just write like : return view('components.header')
sir ma begininer hun sir ap say request hai ezi smjhya krye kuch cheziye humry upr say chali jti hai
Laravel helper functions aur components seems to be similar how are they different?
inspirational sir!
Sir, component or ek chij or hoti h like yeild, section in dono m difference? Coz kaam tho lgbhag same hi hai?
Can create a route to specific component, keeping in mind:
1.The structure of the route will be: Route::view('/compName', 'components/compName');
2. any data passed to the component must be optional.
But I couldn't think of any application where we might need to create a route to components. The whole purpose is to remove redundant code and be able to reuse code in multiple locatoin.
Yes we can access component's header file by giving following path in route's web.php :
Route::view('header', '/components/header');
Sir ham is ke jaga pe include be to kar sakte hain.
Hello sir,
Last Mai Jo question puchte hai app next video Mai answer vi explain kardijiye plz plz.
sir vs code mai syntax highlighter ke liye konsa package hai?? Jo app Route:: suggestions de raha hai??
Also, thank you are making this amazing content, it is very easy to grasp.
You can use laravel extra intellisense or laravel snippets
@@codestepbystep 720p video recording is not looking clear.
Sir Kya components ko as a layout use kr karte ? Or layout ka code @yield('title') or @yield('content') ka use kr sakte he header and footer banane ke liye ?
Yes, call by pass components in route file.
Route::view('header','components/header');
Ans-Route mai function name deke Jo controller mai banege function uske andr return view krke user wali file ka naam de to skta hai I think
hello sir this component command is not run I am using cmd and error are found commad not define pls sir answer
Hi, what's the extension used in vs code for laravel IntelliSense...? Recommend!
laravel extra intellisence
or
laravel snippets
hello sir, in my case when i am accessing $tittle in header component error is thrown "undefine variable $tittle"
App\view\components\header.php
public title=" ";
public function __construct($componentName)
{
$this->title=$componentName;
}
This Might Work sir
Sir make a video on laravel advance.
Hi can u share installation steps of laravel using homestead.yaml file
I am facing this issue during make component how to fixed it.
Make:component is not defined.
How to fixed it
Sir,pls make a video on gates,facades,contracts
Why we create components. Html my 1 page py hi header footer sath hota hai. To is my component kio?
small website hoga to waha component use nhi hota hai.. but bade website ho like ecommerce waha component bahot useful hote hai. q ki hame ek page multiple tym call karna padta hai
sir can you send me you laravel tutorial playlist in hindi vedios
plz sir.....
Hello Dear Component make artisan command n
Hello sir i have 3 years of exp in php developer koi project ho to batyie
Sir laravel kai project ka name kaise change kare cmd command sai
yar ajeeb bndy ho, chzo ka name to different rakho, users and user...mtlb confusion ki hadd krdi hai
Bhai data kaise pass kare usme cleaely batao to ki kaun sa line q likh rahe hai
Pls ek video data pass pe bana do plss
Sir laravel 8 complete download nahi ho raha ha sir
it is not working for me...
there is no error but it is not displaying any results.
My () works only but after when I pas () it doesn't work..... any solution please
Did you get any Solution?
use variable name in small case and in constructor also camelCase notation is causing this error
HI from wheres i can get these code
php artisan make:component header
this command is not working for me. I got an error this command is not defined please help me
thank you
may be this problem regards of to environment variable
I do'nt known please give me answer
In my code there show some error Please help me to figure out:
Illuminate\Contracts\Container\BindingResolutionException
Unresolvable dependency resolving [Parameter #0 [ $ComponentName ]] in class App\View\Components\Header (View: F:\laravel8\blog
esources\views\users.blade.php)
php artisan view:clear
Did you get any Solution?
use variable name in small case and in constructor also camelCase notation is causing this error
same error
facing same error and finding no solution
Blocked server.php error and not loading Laravel page
Tune dono video pe data pass acha se nii bataya hai
This error are found Command "make:component" is not defined
php artisan make:component
Route::view('/component', 'components\header', ["name"=>"sandeep"]);
bro what is the difference between using header and footer from a master class using extend and using this component shit!!! which one should i use?
Iska answer to nhi pata please AP explain Kar do
sir error aa rahi hai
Itni baar right right bolte ho, koi wapas right bhi bolta hai kya 😉
sir i was not able to install component
which os you are using?
view is exits
if(view()->exists($view)){
return view($view)->render();
}
return "Page tidak ditemukan";
dynamic is not working
if we use $name variable (6.21min) it gives an error .we have to take exactly same $componentName variable (6.00 min) in constructor.
Aise confusion create hota hai
o bhai btaya to karo koi cheez q use karrhe ho...
I am getting this error Illuminate\Contracts\Container\BindingResolutionException
Unresolvable dependency resolving [Parameter #0 [ $ComponentName ]] in class App\View\Components\Header (View: PATH\blog
esources\views\about.blade.php)
Yes it's possible to run through Route:: but to run a view we need to create a specific URL whereas header should run automatically for all pages as a function that's why we can't restrict header with specific URL separately.