-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with installation #30
Comments
@mo2l I'll try to recreate the error. |
@mo2l I wasn't able to reproduce the error. I followed all the steps you mentioned above but the Are you sure that you have the service provider in your |
@santigarcor thanks for your response. this is my config/app.php file `<?php return [
];` as far I am not completely blind i should have added the service provider unter the providers part and also have added the alias. If I have made a error there please feel free to tell me. I would b happy to know. Edit: This is the output of
And for
Furthermore just trying the artisan command there is no namespace laratrust listed. |
@mo2l I think i have an idea. Try putting both service providers after ...
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
/*
* Package Service Providers...
*/
'Teepluss\Theme\ThemeServiceProvider',
Laratrust\LaratrustServiceProvider::class, |
@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 :) |
It seems that there is no laratrust command available when you run |
@sasokovacic please provide the detail of your setup, laravel version, laratraust version. I tried to reproduce it once but i couldn't do it. |
I have laratrust 4.0 and laravel 5.4....
then added Laratrust\LaratrustServiceProvider::class and 'Laratrust' => Laratrust\LaratrustFacade::class, to config/app.php both at the bottom of the prviders and aliases arrays..
and added Did I missed something? |
I don't think so. Try running |
I tried everything... nothing changed... |
somebody already mentioned laratrust:setup error but here it is again
I can see the commands in the vendor/santigarcor/laratrust/src/commands folder...
|
do I open new issue or should we continue on this one? |
Let's continue here. Do you know if the Laratrust service provider is loaded at all? Try printing something in |
it's not loaded... |
You said you ran
Did it publish the assets successfully? |
I cannot reproduce this. I did:
Then I added the service provider in
Did you do something besides what I just listed? |
no.. I did it exactly like you... I did publish config and it says
Also tried
If you force publishing it should log publishing directory e.g.
This is not the case with your package.... |
Are you using Laratrust 4.0.1 and Laravel 5.4.28? |
For me it would be the easiest if you could publish a minimal Laravel project where you can see this error. |
yes.. 4.0.1 and 5.4.28.. ok I will install new laravel instance and try |
it's working in new instance of laravel.. I guess I'll have to move all the code... It's a little bit annoying but don't want to spend additional time for debugging... need to finish the project... thanks for your help... I hope I don't return to this issue when I move and install everything... |
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..
and it's working now... |
I'm glad you found the solution. I'll add the hint to the docs. |
great... thanks... |
I fix this issue with this: hopefully this "\Models" this will help you. |
i have shift all the Model to the Models folder then changed in all the files like: App\Models\User |
@narru Try updating your |
Hey,
I am trying to install laratrust and use it in a project.
What i have done is the following:
"require": { "php": ">=5.6.4", "laravel/framework": "5.3.*", "teepluss/theme": "dev-master", "santigarcor/laratrust": "3.0.*"
Provider:
` /*
* Package Service Providers...
*/
`
Aliases:
'Lang' => Illuminate\Support\Facades\Lang::class, 'Laratrust' => Laratrust\LaratrustFacade::class, 'Log' => Illuminate\Support\Facades\Log::class,
php artisan vendor:publish
which happened not to generate a laratrust.php in my config directoryphp 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?
The text was updated successfully, but these errors were encountered: