laravel class not found code example
Example 1: laravel: command not found
export PATH=~/.config/composer/vendor/bin:$PATH
source ~/.bashrc
Example 2: causes of class not found in laravel
the possible cause of this error can be:
1 class doesn’t exist
2.the class name case is not the same for example - Jalalian.php and jalalian.php are not the same even when the class name case is the same check to confirm that use statement has the right letter case.
3. wrong namespace