Giter Club home page Giter Club logo

Comments (4)

drbyte avatar drbyte commented on May 27, 2024 3

I don't understand how you're having any problem with it as-is.

Since the beginning, in all prior Laravel versions, adding this package to config/app.php was always optional due to self-registration. And it still auto-registers itself because it extends Laravel's ServiceProvider class.

use Illuminate\Support\ServiceProvider;
use Illuminate\View\Compilers\BladeCompiler;
use Spatie\Permission\Contracts\Permission as PermissionContract;
use Spatie\Permission\Contracts\Role as RoleContract;
class PermissionServiceProvider extends ServiceProvider

If you want to register it manually, you can, but it is not necessary.

from laravel-permission.

jord3v avatar jord3v commented on May 27, 2024 1

in bootstrap\app.php use

->withProviders([
// Add providers here....
])

from laravel-permission.

AsjidAle avatar AsjidAle commented on May 27, 2024

Thank! I knew that the solution but there's a need to be updated in docx on the site.

from laravel-permission.

AsjidAle avatar AsjidAle commented on May 27, 2024

Thanks for the your valuable time, I got it, the misunderstanding occur due to laravel 11 update in directory structure.

from laravel-permission.

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.