Coder Social home page Coder Social logo

Comments (9)

jeremykenedy avatar jeremykenedy commented on June 8, 2024

You need to publish the config and set the env variables to use it not use the separate roles package

from laravel-users.

quocanh261997 avatar quocanh261997 commented on June 8, 2024

I've already published the config, and it's already showing the laravelusers.php in config folder, but it's still showing the error

from laravel-users.

jeremykenedy avatar jeremykenedy commented on June 8, 2024

I don’t know, i cannot replicate the issue

from laravel-users.

quocanh261997 avatar quocanh261997 commented on June 8, 2024

Do I need to run php artisan vendor:publish --tag=laravelusers everytime I change something in the laravelusers.php file? The way that I'm rendering the create-user.blade.php file is by defining this route:

Route::get('/create-user', function() {
    return view('vendor.laravelusers.usersmanagement.create-user');
});

from laravel-users.

jeremykenedy avatar jeremykenedy commented on June 8, 2024

You shouldn’t need to. All those settings have been ported to env variables.

If you have your configs cached you may need to clear that.

from laravel-users.

jeremykenedy avatar jeremykenedy commented on June 8, 2024

They you are implementing it not as it’s intended design and some data may be missing.

You have to use the built in routes and if you want to use that route you may need to create a redirect to the correct route.

from laravel-users.

jeremykenedy avatar jeremykenedy commented on June 8, 2024

Trying to go to the view directly with a closure will not work. It needs to run through the controller and attach the needed data.

https://github.com/jeremykenedy/laravel-users/blob/master/src/App/Http/Controllers/UsersManagementController.php#L67

from laravel-users.

quocanh261997 avatar quocanh261997 commented on June 8, 2024

Where are the built in routes implemented? I don't see it anywhere in the folder after installing the package

from laravel-users.

jeremykenedy avatar jeremykenedy commented on June 8, 2024

They get picked up by the auto loader and just appear

https://github.com/jeremykenedy/laravel-users/blob/master/src/LaravelUsersServiceProvider.php#L35

from laravel-users.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.