A
A
Andreo2015-12-21 14:27:27
Laravel
Andreo, 2015-12-21 14:27:27

Laravel not finding MessageBag class?

As for me, the obvious is not enough. From what side to solve the problem is not clear.
The following code works successfully on the laptop:

Route::get('test', function() {
    // print(phpinfo());
    $messageBag = new Illuminate\Support\messageBag();
  });

And on the server it fails with an error:
Class 'Illuminate\Support\messageBag' not found

The path to the file where the class is located is correct.
I tried uploading to two servers - the result is the same. Both servers on different Linux, laptop on Windows.
There's something I don't quite understand :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2015-12-21
@chupacabramiamor

I guess it doesn't work on Linux due to file system case sensitivity.
Correctly the class is called MessageBag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question