laratrust: Problems with installation
Hey,
I am trying to install laratrust and use it in a project.
What i have done is the following:
- added laratrust to the require part of my composer.son
"require": { "php": ">=5.6.4", "laravel/framework": "5.3.*", "teepluss/theme": "dev-master", "santigarcor/laratrust": "3.0.*"
- I run composer update what managed to download laracast
- I added the provider and the alias part
Provider:
` /* * Package Service Providers… */
'Teepluss\Theme\ThemeServiceProvider',
Laratrust\LaratrustServiceProvider::class,
`
Aliases:
'Lang' => Illuminate\Support\Facades\Lang::class, 'Laratrust' => Laratrust\LaratrustFacade::class, 'Log' => Illuminate\Support\Facades\Log::class,
- I wanted to run
php artisan vendor:publish
which happened not to generate a laratrust.php in my config directory - When I tried to run
php artisan laratrust:setup
which wasn’t execution with following error message:
[Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "laratrust" namespace.
I have redone the whole installing part twice to check that I didn’t read over something. Any ideas how to solve this?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 27 (6 by maintainers)
ok… really didn’t want to move everything so I tried one more time and figured it out now… here is the solution in case anybody else is having the same problem… I printed out \Config::get(‘app.providers’) and laratrust provider wasn’t listed there… so I ran
$ php artisan config:clear
and it’s working now…
@santigarcor tried it still same problem
just have tried following the instructions with a new project. there it worked so i will probably start from scratch. thank you for your help 😃