1. Laravel Query builder - Search Made Easy @freekspatie

  Рет қаралды 35,120

Bitfumes

Bitfumes

Күн бұрын

Let's review #laravel #querybuilder from #spatie and created by Freek @freekspatie
This Laravel package helps you to make searching or filtering super easy, it can also be used to sort your sql result and add or remove attributes.
Package Links:
docs.spatie.be/laravel-query-...
github.com/spatie/laravel-que...
======================= Ad Free Tutorials ======================
Check bitfumes.com For ads-free and more advanced courses (use Coupon code WELCOME60 to get 60% discount)
==================FOLLOW ME ==================
Subscribe for New Releases!
Twitter - / bitfumes
Facebook - / bitfumes
Instagram - / bitfumes
(ask me questions!)
-- QUESTIONS? --
Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.
Email me support@bitfumes.com
Thanks for all your support!

Пікірлер: 51
@AsanTutorials
@AsanTutorials 4 жыл бұрын
Nice tutorial sir, keep it up. Waiting for the next videos.
@SpaceCoding
@SpaceCoding 4 жыл бұрын
Thanks youtube for recommending to me this video, now I've subscribed to this channel. And of course thanks to the author of this video and the channel!
@azhari_my_id
@azhari_my_id 3 жыл бұрын
Awesome, that pacakge is Extreamly Coollll !! Thanks for sharing bro
@stylersito
@stylersito 4 жыл бұрын
Thanks for sharing, good vibes 🇲🇽
@anygames069
@anygames069 4 жыл бұрын
Cool man .. Never misses any update of laravel from you channel :D
@albertsharp7754
@albertsharp7754 3 жыл бұрын
This helped me a lot. Thanks.
@shahzadwaris7193
@shahzadwaris7193 4 жыл бұрын
Thanks for tutorial
@nomanhanafi9551
@nomanhanafi9551 4 жыл бұрын
learned most of the laravel from you, you are nice
@Bitfumes
@Bitfumes 4 жыл бұрын
Thanks for your love and support, keep learning. Follow bitfumes on twitter.com/bitfumes or facebook.com/Bitfumes to get the latest updates. bitfumes.com
@poopoo888888
@poopoo888888 2 жыл бұрын
very helpful~! thanks a lot~!
@Bitfumes
@Bitfumes 2 жыл бұрын
Glad it was helpful!
@kurumbot
@kurumbot 2 жыл бұрын
I love your laravel tutorial. Thank you. But I got this error -> Spatie\QueryBuilder\Exceptions\InvalidSubject Subject type `string` is invalid. Already updated my Laravel version. I'm not sure what's missing.
@JLRuatpuia
@JLRuatpuia 4 жыл бұрын
Maybe you should change from nulll to null
@alimransujon6388
@alimransujon6388 3 жыл бұрын
Great video
@suman_biswas
@suman_biswas 4 жыл бұрын
What I really want to learn. Great resource, great explanation, thank you very much. My one request that, please make a vedio for how to filter dada from frontend ( Vue App ) with this larave package.
@cultureofnepal2024
@cultureofnepal2024 4 жыл бұрын
Hi, sarthak can you make the tutorial on elastic search with elk stack with laravel. I haven't found good tutorial on it.
@alvarezskinner
@alvarezskinner 4 жыл бұрын
nice video! thanks for the content!
@Bitfumes
@Bitfumes 4 жыл бұрын
Thanks for your love and support, keep learning. Follow bitfumes on twitter.com/bitfumes or facebook.com/Bitfumes to get the latest updates. bitfumes.com
@tyroneonyebuagu2302
@tyroneonyebuagu2302 4 жыл бұрын
What if I want to use the same search query to filter two columns that doesn't have to be exact? Example /?filter[city,location]=memphis. If I do /?filter[city]=memphis&filter[location]=memphis, it will interpret the search query as "AND". How can I achieve this?
@yusufmirza2323
@yusufmirza2323 4 жыл бұрын
Can we use with post method?
@dark_star1
@dark_star1 8 ай бұрын
How did you make the terminal look like this?
@TravelCanadareels
@TravelCanadareels 4 жыл бұрын
Appreciate it if you can tell me, How to encrypt that get URL. Because I give it to that field name it's going to be a security issue.
@hectorvalentine9916
@hectorvalentine9916 4 жыл бұрын
This doesn't work for me, for .../users?filter[name]=John I get: "Requested filter(s) `filter` are not allowed. Allowed filter(s) are `name, email`." Does anyone has an idea of what is happening? Update: I had to clear the cache
@CoffeeQuery
@CoffeeQuery 3 жыл бұрын
I get this error, Undefined type 'Spatie\QueryBuilder\QueryBuilder' inside controller
@nazar87ali
@nazar87ali 2 жыл бұрын
what the VS code theme and what the auto complete extension ??
@mubashirmalik817
@mubashirmalik817 4 жыл бұрын
I learn a lot from your videos but I have 1 request that makes videos with front end we understand more clearly .....by the way, best channel to learn laravel
@Goudendeurkruk
@Goudendeurkruk 3 жыл бұрын
As soon as i pass in allowedFilters('name') or any parameter it does not work anymore
@asharmuhammad8686
@asharmuhammad8686 3 жыл бұрын
great video, but how to use it with input field, i mean whatever i type in search box it gave me that result???
@legakwamotsamai5153
@legakwamotsamai5153 4 жыл бұрын
I'm a beginner and I can't follow your process, all those changes you made to your User.php and User factory. what are they and why did you make them. how do they help you use the spartie query builder?
@yazugaming5573
@yazugaming5573 4 жыл бұрын
Hello Can you tell me about filter starts_between ?
@Goudendeurkruk
@Goudendeurkruk 3 жыл бұрын
My routes are defined with prefix and i cant seem to get this to work with $result = QueryBuilder::for(Log::class)->allowedFilters('component')->get(); return $result; Does any one know how i can?
@MrDovanele
@MrDovanele 4 жыл бұрын
Hey, thanks for video. The part were you tried to filter by email you have typed "nulll" with 3 'l' symbols that's why it wasn't working
@Bitfumes
@Bitfumes 4 жыл бұрын
Ohhh thanks for your support. Thanks for your love and support, keep learning. Follow bitfumes on twitter.com/bitfumes or facebook.com/Bitfumes to get the latest updates. bitfumes.com
@engmustafa8946
@engmustafa8946 4 жыл бұрын
Important question! You implement functions directly form navigation bar ! Like ?fliter[name] = somename ... yes it works !! But how to do that in blade ? Or in controller !! How ? Thank you
@susanasantamaria2713
@susanasantamaria2713 3 жыл бұрын
Hello!! After some trial and error, this is how it worked for me: My controller use App\User; use Spatie\QueryBuilder\QueryBuilder; class UserController extends Controller { public function index(Request $request) { $name = $request->get('name'); $email = $request->get('email'); $users = User::name($name)->email($email)->paginate(); $userSearch = QueryBuilder::for(User::class) ->allowedFilters(['name', 'email']) ->get(); return view('users.index', ['users' => $users]); } } My model class User { /** * @param Builder * @param string $name * @param mixed $query * * @return Builder */ public function scopeName($query, $name) { return $query->where('name', 'LIKE', "%{$name}%"); } /** * @param string $email */ public function scopeEmail(Builder $query, $email): Builder { if (null !== $email) { return $this->searchByField($query, 'email', $email, '='); } return $query; } /** * @param strin $value */ public function searchByField(Builder $query, string $field, string $value, string $operator = null): Builder { return $query->where($field, $operator, $value); } } My view Buscar Regresar I hope this helps someone!!
@william254
@william254 2 жыл бұрын
For simple name search *Blade* *Controller* QueryBuilder::for(User::class)->allowedFilters(['name'])
@MarcelloPato
@MarcelloPato 4 жыл бұрын
Larravel has such cool features... how it is not mentioned as a 'must learn' technology to learn in 2020?
@Bitfumes
@Bitfumes 4 жыл бұрын
I have mentioned Laravel on 2020 technologies. Laravel Rocks :)
@MarcelloPato
@MarcelloPato 4 жыл бұрын
@@Bitfumes yeahhhhhhh!"
@mukeshrai4890
@mukeshrai4890 4 жыл бұрын
Wow
@mohamedabdelhalim9892
@mohamedabdelhalim9892 3 жыл бұрын
it returns Call to undefined method App\Models\Tournment::get2Attribute(), documentations didn't mention anything about adding methods to models, any help would be appreciated
@user-bc6ue3ri7o
@user-bc6ue3ri7o 3 жыл бұрын
same issue
@daniellogvin6609
@daniellogvin6609 4 жыл бұрын
You typed "nulll" instead of "null" 😅 Great video tho!
@AjayPatel-ip2dv
@AjayPatel-ip2dv 4 жыл бұрын
can u make a video on laravel with vue spa authentication
@Bitfumes
@Bitfumes 4 жыл бұрын
Okay I will try that. Thanks
@AjayPatel-ip2dv
@AjayPatel-ip2dv 4 жыл бұрын
@@Bitfumes Thank bro
@anygames069
@anygames069 4 жыл бұрын
kzbin.info/www/bejne/fnjLYZaBeruLhqs check this out if you wanna learn . he uses laravel passport for token generation. well it would be cool if Bitfumes makes one :D
@newprogrammer1811
@newprogrammer1811 4 жыл бұрын
your english speaking have improve.
@Bitfumes
@Bitfumes 4 жыл бұрын
Thanks bro, I am working on it, It's all because of positive feedback your viewers like you.
@abeautyqueenofonly18
@abeautyqueenofonly18 4 жыл бұрын
have improve = has improved*
2. Laravel Query builder - Search Made Easy @freekspatie
6:08
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 66 МЛН
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 159 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 40 МЛН
Laravel-data от Spatie: просто и со вкусом! Описание библиотеки.
43:52
Eloquent vs Query Builder vs SQL: Performance Test
5:37
Laravel Daily
Рет қаралды 49 М.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 137 М.
DTO в laravel для requests а также обзор библиотеки от Spatie
7:40
Просто о Laravel. CutCode
Рет қаралды 9 М.
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 16 М.
1 Laravel Activity Log By Team Spatie - Intro and Setup
10:42
Laravel Pivot Tables: Simple to Advanced Many-to-Many
12:24
Laravel Daily
Рет қаралды 118 М.
Query Builder | Laravel For Beginners | Learn Laravel
17:09
Code With Dary
Рет қаралды 24 М.
3. Laravel Activity Log By Team Spatie - Customisation
10:27
Bitfumes
Рет қаралды 20 М.