jeremykenedy / laravel-users

A Users Management Package that includes all necessary routes, views, models, and controllers for a user management dashboard and associated pages for managing Laravels built in user scaffolding. Built for Laravel 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.0, 7.0 and 8.0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attempting to get working with laratrust

trevorclarke opened this issue · comments

Hi,

I'm trying to get this working on fresh laravel 5.6 install with https://github.com/santigarcor/laratrust

I've run:
php artisan make:auth

composer require "santigarcor/laratrust:5.0.*"

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

php artisan laratrust:setup

composer require jeremykenedy/laravel-users

php artisan vendor:publish --tag=laravelusers

Copied Directory [\vendor\jeremykenedy\laravel-users\src\resources\views] To [\resources\views\vendor\laravelusers]
Copied Directory [\vendor\jeremykenedy\laravel-users\src\resources\lang] To [\resources\lang\vendor\laravelusers]
Publishing complete.

This has resulted in files being created e.g. resources\views\vendor\laravelusers\usersmanagement

php artisan migrate


contents of routes/web.php

Route::get('/', function () {
return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

If you can point out where I've gone wrong that would be great.

No error messages

I would open an issue with that repo since the issue your having is with that package. It works on Laravel and I cannot duplicate the issue on a base installation of Laravel. That repo you linked to is an on version 5.2 and I have have not used that project.

From what I recall package auto-discovery was not part of Laravel on 5.2 and you will need to install the package and add it to the service provider array in app.php

And as outlined in the readme if you are using L5.2 you will need to use an older version of this

composer require jeremykenedy/laravel-users:1.2.0

Then follow step 2 for Laravel 5.4 and below.

I would also suggest installing a base instance of Laravel and using https://github.com/jeremykenedy/laravel-roles instead of Laratrust. Laravel-users is built to work with laravel-roles.

https://laravel.com/docs/5.2/packages