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
thanks a lot. it was perfect and useful
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
Good job bro
Thanks for watching bro
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.
thank you
Thanks for watching.