0

I did a fresh install of Laravel and Laratrust.

I enabled the Laratrust Panel and when I went to it I got the following... Screenshot of Error Message

Other solutions I found said to do npm install and npm run dev or npm run production. These did not help. Any ideas?

STA
  • 30,729
  • 8
  • 45
  • 59
David
  • 1
  • You said npm run dev didn't help. Is there a mix-manifest.json in your public folder? Did it throw an error? – IGP Jul 10 '20 at 07:20
  • Correct, it did not fix my problem. I have actually had several issues with Laratrust so I just uninstalled it completely and have been building a user / team / role / permission management system myself. – David Jul 10 '20 at 16:59

2 Answers2

0

I did solve this problem!

You need to write command

php artisan vendor:publish --tag=laratrust-assets --force

before or instead

php artisan vendor:publish --tag="laratrust"
0

You can run it from the project folder on your server if you use Docker with Sail.
First:
./vendor/bin/sail php artisan vendor:publish --tag=laratrust-assets --force
Second:
./vendor/bin/sail php artisan vendor:publish --tag="laratrust"


You can run it from the project folder on your server.
First: php artisan vendor:publish --tag=laratrust-assets --force
Second: php artisan vendor:publish --tag="laratrust"