Global Blade variable | Laravel 10 Tutorial #44

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 19

  • @HamadAbdulla_7
    @HamadAbdulla_7 11 หลายเดือนก่อน +2

    thank you

    • @yelocode
      @yelocode  11 หลายเดือนก่อน

      Thanks for watching.

  • @turki5528
    @turki5528 11 หลายเดือนก่อน +4

    to be honest this is the best channel i watched in years if you will do paid courses sign me up !! thank you !👍

    • @yelocode
      @yelocode  11 หลายเดือนก่อน

      Thank you, glad to hear that. I'm planing to release some paid courses but want them to be alot better than my youtube videos, will make announcements once the courses are out.
      Thank you 😄

  • @kadirertan8664
    @kadirertan8664 9 หลายเดือนก่อน +1

    Thank you. Very helpful content.

  • @aravindkumark4527
    @aravindkumark4527 11 หลายเดือนก่อน +1

    make the video for backpack package in laravel

  • @miladseifoori6645
    @miladseifoori6645 11 หลายเดือนก่อน +1

    good job bro

    • @yelocode
      @yelocode  11 หลายเดือนก่อน

      Thank you

  • @jfprograma4004
    @jfprograma4004 9 หลายเดือนก่อน

    Hi thanks for this tutorial, is good or bad to create a static function in User model topUsers a return
    self::withCount('ideas')... ? and called from AppServiceProvider as User::topUsers(); to passed to the View share facade?

    • @yelocode
      @yelocode  9 หลายเดือนก่อน +2

      Thanks for watching. Generally speaking on small projects it's not a problem to do that . However, if you see or know that the User Model might be getting too big or you have too many static methods like the topUsers, you are better off refactoring or having them inside a service or helper class that is only responsible for these kinds of queries so your code is better organized.

  • @alikaram98
    @alikaram98 11 หลายเดือนก่อน +1

    why subtitle video is closed?

    • @yelocode
      @yelocode  11 หลายเดือนก่อน

      I think they are active now, they are auto generated by youtube, might take a few minutes for it to be available.

  • @Nozo_O_O
    @Nozo_O_O 3 หลายเดือนก่อน

    Hey bro!
    I have faced a problem when I tried to connect the project with new database, when i did a migration I got a big error which told me that this global variable is trying to do its query before creating the tables , I don't know if it was bcz The AppServiceProvider did its lines before creating that tables when I run the command php artisan migrate.
    So what should we do better than this in order not to get this error when somebody try to run the project

    • @bensonchege9941
      @bensonchege9941 2 หลายเดือนก่อน

      Reset all the migrations using the command:
      php artisan migrate:reset
      Then, run the migrations:
      php artisan migrate
      Make sure to drop all the tables from the database if some fail to drop
      Alternatively, roll back all migrations and then re-run them using the command below:
      php artisan migrate:refresh

  • @shubhamsahuSD
    @shubhamsahuSD 11 หลายเดือนก่อน

    In livewire 3 , i am facing a problem if i try to do this on mount i am getting an error i cant do any complex query in livewire 3 which contains groupBy, select, orderBy etc.
    E.g i am doing this on mount method

    • @yelocode
      @yelocode  11 หลายเดือนก่อน

      Should be able to these queries in mount. What kinda error are you getting? can you share it

    • @shubhamsahuSD
      @shubhamsahuSD 11 หลายเดือนก่อน

      @@yelocode i have so question, but I can't share link here youtube automatically removing it

  • @immanuelnganga3920
    @immanuelnganga3920 10 หลายเดือนก่อน +1

    you shall not get sick again

    • @yelocode
      @yelocode  9 หลายเดือนก่อน

      I hope so too