Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Cannot run Laravel after downloading the repo

James Newstone   ( User )

Commented 3 years ago

When I run composer install, I get the below error messages, what should I do to fix them?

Exception: Call to a member function companies() on null
Could not analyze class App\Models\Auth\Permission.

Trace:
#0 /home/orkhan7887/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/Factory.php(153): App\Abstracts\Factory->__construct()
#1 /home/orkhan7887/Akaunting/akaunting/app/Models/Auth/Permission.php(90): Illuminate\Database\Eloquent\Factories\Factory::new()
#2 /home/orkhan7887/Akaunting/akaunting/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2129): App\Models\Auth\Permission::newFactory()
#3 /home/orkhan7887/Akaunting/akaunting/vendor/barryvdh/laravel-ide-helper/src/Console/ModelsCommand.php(1113): Illuminate\Database\Eloquent\Model::__callStatic()
#4 /home/orkhan7887/Akaunting/akaunting/vendor/barryvdh/laravel-ide-helper/src/Console/ModelsCommand.php(282): Barryvdh\LaravelIdeHelper\Console\ModelsCommand->getFactoryMethods()
#5 /home/orkhan7887/Akaunting/akaunting/vendor/barryvdh/laravel-ide-helper/src/Console/ModelsCommand.php(163): Barryvdh\LaravelIdeHelper\Console\ModelsCommand->generateDocs()

Please login or register to leave a response.

Showing 1 to 1 of 1 discussions