V
V
Vit2015-05-23 22:47:25
Laravel
Vit, 2015-05-23 22:47:25

Laravel 4.2 stopped working on the server, where to look for the problem?

On the working machine everything worked without errors. Uploaded the project to the server, the error began to appear:

{"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException"
,"message":"Class 'work' not found","file":"\/home\/site \/vendor\/laravel\/framework\/src
\/Illuminate\/Database\/Eloquent\/Model.php","line":792}}

The Work class in the Models folder
<?php
class Work extends Eloquent {
  protected $table = 'works';
}

I don’t quite understand why Laravel stopped finding the work class if everything worked on the local machine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2015-05-24
@reech

It also says
>>Class 'work'
and you have Work.
Watch the register of files and classes so that there are no incidents on unix systems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question