Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
14 events
when toggle format what by license comment
Dec 4, 2021 at 19:56 comment added miken32 The when() method executes the callback in second parameter only if the first parameter is true. laravel.com/docs/8.x/queries#conditional-clauses
Dec 4, 2021 at 19:55 comment added miken32 Besides the point, but you should be doing a conditional query based on the request value, instead of pulling everything from the database and then filtering. E.g. $posts = Post::orderBy('titel')->when($request->filled('s'), fn ($q) => $q->where('titel', 'like', '%'.$request->s.'%'))->get();
Dec 4, 2021 at 19:53 history closed miken32 php Duplicate of How to pass data to view in Laravel?
Dec 4, 2021 at 19:52 history edited miken32 CC BY-SA 4.0
deleted 504 characters in body
Dec 4, 2021 at 14:43 history edited Frevelman CC BY-SA 4.0
deleted 4052 characters in body; edited title
Nov 28, 2021 at 12:04 answer added Ariful Islam timeline score: 2
Nov 28, 2021 at 11:59 answer added MANSOOR KOCHY timeline score: 1
S Nov 28, 2021 at 11:52 vote accept Frevelman
S Nov 28, 2021 at 11:52 vote accept Frevelman
S Nov 28, 2021 at 11:52
S Nov 28, 2021 at 11:51 vote accept Frevelman
S Nov 28, 2021 at 11:52
Nov 28, 2021 at 11:48 answer added Md Sohanur Rahaman timeline score: 3
Nov 28, 2021 at 11:44 vote accept Frevelman
S Nov 28, 2021 at 11:51
Nov 28, 2021 at 11:33 answer added Abdullah Basem timeline score: 1
Nov 28, 2021 at 11:29 history asked Frevelman CC BY-SA 4.0