Comments (4)
The full code for the App\Providers\AuthServiceProvider (./app/Providers/AuthServiceProvider.php) in Laravel 5.2 is
<?php
namespace App\Providers;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any application authentication / authorization services.
*
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
* @return void
*/
public function boot(GateContract $gate)
{
$this->registerPolicies($gate);
$gate->define('admin', function($user, $roles) {
return app( '\Aimeos\Shop\Base\Support' )->checkGroup( $user->id, $roles );
});
}
}
from aimeos-laravel.
Hey @warmjaijai did you ever manage to get past this? Stuck on the same issue 😄
from aimeos-laravel.
i'm stuck on this
from aimeos-laravel.
yep that worked :)
from aimeos-laravel.
Related Issues (20)
- Some functions report an error HOT 3
- API with laravel sanctum HOT 1
- laminas/laminas-diactoros problem with Laravel 10 and PHP 8.1+ HOT 1
- Running Custom Cronjob in Aimeos Laravel. HOT 1
- rest api for client aplication HOT 3
- error while running aimeos:setup HOT 1
- Please disregard
- 404 on catalog-filter.js and catalog-filter.css HOT 6
- Showing Class "\Aimeos\MShop\User\Manager\Standard" not found HOT 1
- Can't access to admin panel on fresh install
- Pricing rules issue, getting reset after placing order HOT 1
- How these actions are defined ? HOT 1
- Correction to installation instructions needed when installing Laravel Breeze HOT 1
- Integrating Urway-Payment into Aimeos Laravel Package HOT 2
- SQL syntax Error when running setup command. HOT 2
- [Solved] Dependency issue when installing aimeos... psr/http-message HOT 1
- The extension jqadm's index.blade.php is not taken into consideration HOT 1
- Changing shop prefix A non-recoverable error occurred in header (categories menu and search) HOT 8
- Auth API HOT 3
- New release supporting Laravel 11 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aimeos-laravel.