Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fredmoras's avatar

class error in deployment

hi everybody,

I 've got an error after deployment of laravel project: Everything work in local, but i can't install composer on the server so i add manually the /vendor. can't dump-autoload or somethings like that.

FatalThrowableError in 44db61d9559e2ac8d86cb483e8d4d8b9b0f3d796.php line 15: Class 'App\note' not found

0 likes
4 replies
tisuchi's avatar

If I am not mistaken, in server, model name and file name must be Capitalized.

It should be App\Note instead of App\note.

For instance- Note.php model

<?php

namespace App;


class Note extends Model
{
....
4 likes
fredmoras's avatar

hi tisuchi, but in local dev everything work find!! does i update every file?

tisuchi's avatar

I have same issue before. It was working fine in local environment.

However, after making capitalized all model and controller, it was working fine too me. Hope, will work for you too.

4 likes
Snapey's avatar

hi tisuchi, but in local dev everything work find!! does i update every file?

your local environment might not care about letter case, but all web servers will care and note.php and Note.php are not the same file.

You will need to work through errors like this comparing the name in code and the filenames to ensure they are the same

1 like

Please or to participate in this conversation.