Support the ongoing development of Laravel.io →

Mike B.

Joined 21 Jun 2017

Statistics

Threads 0
Replies 5
Solutions 0
Articles 0

szkuwa has not posted any threads yet

replied 6 years ago

->hasWhere does not seem to be working on my global scope

From the snippets you've posted it does seem correct to me and it works with simple $builder->whe...

0 Likes
replied 6 years ago

->hasWhere does not seem to be working on my global scope

Maybe try to turn on logging of SQL queries and check if they are OK. Eloquent/Query builders are gr...

0 Likes
replied 6 years ago

Is there a way to pass every variable in a controller action, to the view automatically?

Now that I'm thinking about it - one could reverse the filter to exclude variables starting with und...

0 Likes
replied 6 years ago

Is there a way to pass every variable in a controller action, to the view automatically?

It's true that it can be dangerous and it will pass down the function arguments too (since they are...

0 Likes
replied 6 years ago

Is there a way to pass every variable in a controller action, to the view automatically?

I don't think the author was thinking about the global scopes / view composers but only about not ne...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.