Laravel 8 tutorial in Hindi # Component

Поделиться
HTML-код
  • Опубликовано: 10 сен 2020
  • in this laravel 8 hindi video tutorial, we learn what is view and how to view in laravel 8 project. this video is made by anil Sidhu in the Hindi language
    we also learn new update which is coming with laravel 8th version
    laravel full course with every topic
    steps of this video
    What is Component
    how to Make it
    how can we Call component
    Pass Data to component
    Interview Question for component

Комментарии • 101

  • @hemantsoni211
    @hemantsoni211 3 года назад +4

    Thank you so much for creating such an awesome and valuable laravel video series😊😊😊

  • @riteshprajapati5512
    @riteshprajapati5512 3 года назад +28

    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

  • @umairhanif9108
    @umairhanif9108 3 года назад +6

    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.

  • @sumitsingh-bi4ks
    @sumitsingh-bi4ks 3 года назад +1

    thank you sir for giving best tutorial content

  • @sanjibmitra8124
    @sanjibmitra8124 3 года назад +9

    yes we can use it Route::view('header', 'components.header');

  • @sakibarkate9207
    @sakibarkate9207 3 года назад +1

    the explanation is mindblowing thankyou sir

  • @taibaiftikhar3858
    @taibaiftikhar3858 3 года назад +2

    Thank u sir its really helpfull

  • @jigneshpatel08
    @jigneshpatel08 3 года назад +2

    Awsome explanation, Thank for this amazing laravel series

  • @patelrahul4082
    @patelrahul4082 6 месяцев назад +1

    yes use it Route::view('header', 'components.header');

  • @abbasalibutt
    @abbasalibutt Год назад +3

    Yes we can use component blade file directly. As in your example you used we can do like Route::view("header", "components/header", ['title'=>'Abbas']);

    • @adityajodhani7397
      @adityajodhani7397 Год назад +1

      please use .(dot) instead of /(forword slash ) otherthing are perfect nice try

  • @incode6669
    @incode6669 3 года назад +3

    yes we can use the component as a view for that we have mention folder name before the component name

  • @ABHISHEKSHARMA-zf6vo
    @ABHISHEKSHARMA-zf6vo 3 года назад +4

    Yes Sir, Route::view('about','components/header');

  • @mohammedimran1144
    @mohammedimran1144 2 года назад

    helpful video sir

  • @user-mp5og1js2e
    @user-mp5og1js2e 10 месяцев назад

    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

  • @manurajput8218
    @manurajput8218 3 года назад +3

    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...

  • @soniclickadbox8646
    @soniclickadbox8646 3 года назад

    very nice tutorial, thanks

  • @fireluffy9156
    @fireluffy9156 3 года назад +2

    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

  • @howto22277
    @howto22277 Год назад

    Nice

  • @SanjayKumar-un7xf
    @SanjayKumar-un7xf 3 года назад

    Really nice video :)

  • @devshiva2011
    @devshiva2011 3 года назад

    bro plz Answer your Questions...next video for better understand....ty

  • @akSingh_120
    @akSingh_120 Год назад

    great (Y)

  • @aamirkhanmaarofi9705
    @aamirkhanmaarofi9705 3 года назад +2

    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.

    • @aamirkhanmaarofi9705
      @aamirkhanmaarofi9705 3 года назад +1

      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.

  • @pratikpawar05
    @pratikpawar05 3 года назад +3

    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.

    • @codestepbystep
      @codestepbystep  3 года назад +2

      You can use laravel extra intellisense or laravel snippets

    • @mihirpatel6758
      @mihirpatel6758 Год назад

      ​@@codestepbystep 720p video recording is not looking clear.

  • @greatas226
    @greatas226 3 года назад

    Sir, component or ek chij or hoti h like yeild, section in dono m difference? Coz kaam tho lgbhag same hi hai?

  • @uniquecreation0009
    @uniquecreation0009 2 года назад

    nice

  • @masim8464
    @masim8464 3 года назад

    aur sir thora slow slow video mn smjhya krye .. baki sir you are great

  • @ashishkamal7642
    @ashishkamal7642 2 года назад

    Yes we can access component's header file by giving following path in route's web.php :
    Route::view('header', '/components/header');

  • @divyanshu160
    @divyanshu160 3 года назад +1

    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 ?

  • @amitdev1485
    @amitdev1485 2 года назад

    Laravel helper functions aur components seems to be similar how are they different?

  • @muzaffer433
    @muzaffer433 3 года назад

    Hello sir,
    Last Mai Jo question puchte hai app next video Mai answer vi explain kardijiye plz plz.

  • @neerajsharma3730
    @neerajsharma3730 3 года назад

    Yes, call by pass components in route file.
    Route::view('header','components/header');

  • @abhishekdeshmukh8062
    @abhishekdeshmukh8062 3 года назад

    inspirational sir!

  • @muhammadhamzasaleemi2698
    @muhammadhamzasaleemi2698 2 года назад

    Hello Dear Component make artisan command n

  • @user-qn5wl5xy1k
    @user-qn5wl5xy1k Год назад

    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

  • @ABHISHEKKUMAR-ne3rk
    @ABHISHEKKUMAR-ne3rk 3 года назад

    Sir,pls make a video on gates,facades,contracts

  • @sanjaykushwah9420
    @sanjaykushwah9420 3 года назад

    Sir make a video on laravel advance.

  • @bigint7373
    @bigint7373 3 года назад +1

    Hi, what's the extension used in vs code for laravel IntelliSense...? Recommend!

    • @RahulGupta-id2qr
      @RahulGupta-id2qr 3 года назад

      laravel extra intellisence
      or
      laravel snippets

  • @adityajodhani7397
    @adityajodhani7397 Год назад

    Answer : Yes , You can call components file by just write like : return view('components.header')

  • @masim8464
    @masim8464 3 года назад

    sir ma begininer hun sir ap say request hai ezi smjhya krye kuch cheziye humry upr say chali jti hai

  • @gamerx4294
    @gamerx4294 2 года назад

    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

  • @roovinbansal8647
    @roovinbansal8647 3 года назад

    sir can you send me you laravel tutorial playlist in hindi vedios
    plz sir.....

  • @simrrrran1
    @simrrrran1 Год назад

    Hi can u share installation steps of laravel using homestead.yaml file

  • @anne7059
    @anne7059 3 года назад

    Pls ek video data pass pe bana do plss

  • @AliHamza-qp3bo
    @AliHamza-qp3bo Год назад

    I do'nt known please give me answer

  • @AbdulSattar-uv5rq
    @AbdulSattar-uv5rq 2 года назад

    Sir ham is ke jaga pe include be to kar sakte hain.

  • @govindgaur2954
    @govindgaur2954 3 года назад

    hello sir this component command is not run I am using cmd and error are found commad not define pls sir answer

  • @harisidrees3857
    @harisidrees3857 Год назад

    I am facing this issue during make component how to fixed it.
    Make:component is not defined.

  • @studio9003
    @studio9003 2 года назад

    Hello sir i have 3 years of exp in php developer koi project ho to batyie

  • @knowledgeamq5741
    @knowledgeamq5741 3 года назад

    Why we create components. Html my 1 page py hi header footer sath hota hai. To is my component kio?

    • @RahulGupta-id2qr
      @RahulGupta-id2qr 3 года назад

      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

  • @ubaidulhaque9610
    @ubaidulhaque9610 2 года назад

    hello sir, in my case when i am accessing $tittle in header component error is thrown "undefine variable $tittle"

    • @ujenmaharjan8573
      @ujenmaharjan8573 2 года назад

      App\view\components\header.php
      public title=" ";
      public function __construct($componentName)
      {
      $this->title=$componentName;
      }
      This Might Work sir

  • @asaadhabibkhan8420
    @asaadhabibkhan8420 2 года назад

    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

    • @gamingsites1041
      @gamingsites1041 2 года назад

      Did you get any Solution?

    • @poojamaurya4122
      @poojamaurya4122 2 года назад

      use variable name in small case and in constructor also camelCase notation is causing this error

  • @manurajput8218
    @manurajput8218 3 года назад

    Sir laravel kai project ka name kaise change kare cmd command sai

  • @ansarmehmood4488
    @ansarmehmood4488 3 года назад

    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

    • @ekanshsoni1509
      @ekanshsoni1509 Год назад

      may be this problem regards of to environment variable

  • @mohibullah5161
    @mohibullah5161 Год назад

    Blocked server.php error and not loading Laravel page

  • @anne7059
    @anne7059 3 года назад

    Bhai data kaise pass kare usme cleaely batao to ki kaun sa line q likh rahe hai

  • @sarmadmahar
    @sarmadmahar 3 года назад +1

    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)

  • @incode6669
    @incode6669 3 года назад

    Route::view('/component', 'components\header', ["name"=>"sandeep"]);

  • @anne7059
    @anne7059 3 года назад

    Aise confusion create hota hai

  • @programingwithsagarsharma6544
    @programingwithsagarsharma6544 3 года назад

    Sir laravel 8 complete download nahi ho raha ha sir

  • @refatkhan7972
    @refatkhan7972 3 года назад

    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)

  • @rahulprajapati3526
    @rahulprajapati3526 3 года назад

    view is exits
    if(view()->exists($view)){
    return view($view)->render();
    }
    return "Page tidak ditemukan";

  • @rajachakraborty1478
    @rajachakraborty1478 2 года назад

    dynamic is not working

  • @mayurbahuguna8438
    @mayurbahuguna8438 3 года назад

    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?

  • @govindgaur2954
    @govindgaur2954 3 года назад

    This error are found Command "make:component" is not defined

  • @RizwanKhan-yn9yb
    @RizwanKhan-yn9yb Год назад

    if we use $name variable (6.21min) it gives an error .we have to take exactly same $componentName variable (6.00 min) in constructor.

  • @jayakumari4355
    @jayakumari4355 3 года назад

    Iska answer to nhi pata please AP explain Kar do

  • @IyyerSwami_Gaming
    @IyyerSwami_Gaming Год назад

    sir error aa rahi hai

  • @osamajaved46
    @osamajaved46 Год назад +1

    yar ajeeb bndy ho, chzo ka name to different rakho, users and user...mtlb confusion ki hadd krdi hai

  • @jitendrachandrakar4284
    @jitendrachandrakar4284 3 года назад

    sir i was not able to install component

  • @vedantraj
    @vedantraj Год назад

    Itni baar right right bolte ho, koi wapas right bhi bolta hai kya 😉

  • @anne7059
    @anne7059 3 года назад

    Tune dono video pe data pass acha se nii bataya hai

  • @syedsaifalishahbukhari9399
    @syedsaifalishahbukhari9399 Год назад

    o bhai btaya to karo koi cheez q use karrhe ho...

  • @yashsuvagiya7438
    @yashsuvagiya7438 Год назад

    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.