Scopes | Laravel 10 Tutorial #45

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • Scopes | Laravel 10 Tutorial #45
    On this episode, we will cover an easy way to refactor our model queries into reusable and expressive code with the help of scopes.
    laravel.com/docs/10.x/eloquen...
    Playlist of Laravel 10 Tutorial Course :
    • Laravel 10 Beginners C...
    Full Code on github:
    github.com/yelocode/ideas
    Boots Watch :
    bootswatch.com/
    Laravel debug bar:
    github.com/barryvdh/laravel-d...
    HTML template Github Link:
    github.com/yelocode/bootstrap...
    What is Laravel :
    Laravel is a free and open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model-view-controller architectural pattern and based on Symfony.
    en.wikipedia.org/wiki/Laravel
    If you're looking to learn how to authenticate a user using Laravel 10, then this is the video for you! In this tutorial, In this tutorial, we'll create a simple registration form that users will be able to submit.
    If you have any questions or problems please leave a comment.
    Laravel Blade global variables
    Laravel crash course
    Laravel Database and crud tutorial
    Laravel Login and Authentication
    Laravel form request

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

  • @LoneTaha
    @LoneTaha 3 месяца назад

    thanks a lot. it was perfect and useful

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

    thank you for your videos man, they make understanding php and laravel easier. Can you please continue with the langauge tutorial on how to have different languages on a site and how users can switch languages and remain on the same page

  • @miladseifoori6645
    @miladseifoori6645 6 месяцев назад +3

    Good job bro

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

      Thanks for watching bro

  • @kadirertan8664
    @kadirertan8664 4 месяца назад

    Great video as always. I have notice that when we are searching from feed page we are not searching for ideas belongs to people we follow. So i upgrade a few lines like below and may be helpful for others:
    Form tag in search-bar.blade.php:
    FeedController's __invoke method:
    $followingIDs = auth()->user()->followings()->pluck("user_id");
    $ideas = Idea::when(request()->has("search"), function($query) {
    $query->search(request("search"));
    })->whereIn("user_id", $followingIDs)->latest()->paginate(3);
    return view("dashboard", [
    "ideas" => $ideas
    ]);
    This way we can search for ideas belongs to people we follow.

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

    thank you

    • @yelocode
      @yelocode  6 месяцев назад

      Thanks for watching.