Support the ongoing development of Laravel.io →

Unit testing - mock eloquent's query scope method

I would like to mock model's scope method, is it possible? Here is the scenario: Order model: public...

0 Likes
3 Replies

Access first data of a many to many relationsheep with eloquent

Hello, I have two models Person class Person extends Model { public function emails()...

0 Likes
2 Replies
Solved
posted 9 years ago

loading view returns an error

When trying to run the 'dashboard' view - it returns an error in return: ReflectionException in Cont...

0 Likes
1 Replies
Solved

Laravel Cashier Resume Subscription

Hi, I have a working app with laravel cashier and I can bill a user, swap plans... but I don't know...

0 Likes
0 Replies
posted 9 years ago

sum() Returns 0 if Used with skip()

I have ran into a problem with regards to standalone Eloquent. I have a query like this: $data = Tes...

0 Likes
1 Replies

Middleware return $next($request) with JSON?

In the handle() method of my middleware, I currently have: return $next($request); But I would like...

0 Likes
5 Replies
Solved
posted 9 years ago

jenssegers/date translate date from database

I'm stuck on localization... I want to translate a record from the database with the github package...

0 Likes
3 Replies

Class 'Illuminate\View\HtmlServiceProvider' not found

I'm trying to use Html and Form facade but without any luck. This is the error I get: FatalErrorExce...

0 Likes
3 Replies

Call a mutator

How to call mutator if I don't have that field in $request->all() input fields? In my model: publ...

0 Likes
2 Replies
Solved
posted 9 years ago

Getting a NotFoundHttpException

when trying to run a view I am getting an error says: NotFoundHttpException in RouteCollection.php l...

0 Likes
4 Replies
Solved
posted 9 years ago

Laravel Cron Jobs do not honour server timezone

As We know that Cron system works on UTC only. Does laravel honour server timezone while triggering...

0 Likes
3 Replies
Solved
posted 11 years ago

Outer Join Clousure

Hi, i know that i can do a full outer join with ->join('Especialidades', 'Especialidades.espe_Cod...

0 Likes
3 Replies
Solved

How to custom validation

Hi, I have a field wich receive a JSON like this: {"grid":{"product":1,"col...

0 Likes
0 Replies

Route, style disappear

Hi all! I'm pretty new to laravel and I have a problem. I using route: Route::get('/home', function...

0 Likes
4 Replies
Solved

Laravel 5.1 and Opcache compatibility

Hi. I have a question concerning Laravel and OPcache (built in as of PHP 5.5.0). Current setup Lara...

0 Likes
0 Replies

Geting server error 500 on my server

When setup my project on sub domain getting below error. PHP Warning: require(/home/username/public...

0 Likes
2 Replies
Solved

form-data not accessible in middleware via $request

Hi, I'm unable to access my form-data in middleware, however, If I send the same data as a JSON, I c...

0 Likes
0 Replies
posted 9 years ago

Route issue not defined when it is

Hello guys, I'm getting stuck on a route which is not defined according to Laravel 5. All my routes...

0 Likes
2 Replies

Getting a gallery item from a pivot table

I'm using laravel 4 and I'm trying to get all the gallery items that belongs to a category depending...

0 Likes
2 Replies
posted 9 years ago

Fastest way to search value in array.

Hello everyone. I am wondering what will be the fastest way to find pair value in array in blade. Wh...

0 Likes
7 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

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.

© 2025 Laravel.io - All rights reserved.