Comments (2)
class Role{}
- /lavalite/app/Facades/Role.php
- /lavalite/app/Forms/Role.php
- /lavalite/app/Litepie/Role.php
- /lavalite/app/Models/Role.php
- /lavalite/vendor/lavalite/framework/src/Litepie/Roles/Forms/Role.php
- /lavalite/vendor/lavalite/framework/src/Litepie/Roles/Models/Role.php
function findBySlug{}
- /lavalite/vendor/lavalite/framework/src/Litepie/Database/Traits/Sluggable.php
public static function findBySlug($slug, $columns = ['*'])
{
return self::whereSlug($slug)->first($columns);
}
- /lavalite/vendor/lavalite/framework/src/Litepie/Repository/Eloquent/BaseRepository.php
public function findBySlug($value = null, $columns = ['*'])
{
$this->applyCriteria();
$this->applyScope();
$model = $this->model->whereSlug($value)->first($columns);
$this->resetModel();
return $this->parserResult($model);
}
function attachRole
- /lavalite/vendor/lavalite/framework/src/Litepie/Roles/Models/Role.php
public function attachRoles($user)
{
$guard = $this->getGuardRoute();
$roles = config('auth.register.roles.' . $guard, null);
if ($roles == null) {
return;
}
foreach ($roles as $role) {
$roleId = Role::findBySlug($role)->id;
$user->attachRole($roleId);
}
return true;
}
- /lavalite/vendor/lavalite/framework/src/Litepie/Roles/Interfaces/HasRoleAndPermission.php
public function attachRole($role);
/lavalite/vendor/lavalite/framework/src/Litepie/Roles/Models/Role.php
class Role extends Model implements RoleHasRelationsContract
{
use Filer;
use Hashids;
use Sluggable;
use PresentableTrait;
use RoleHasRelations;
if I add use Litepie\Roles\Models\Role;
in /lavalite/app/Http/Controllers/Auth/RegisterController.php
there are Call to undefined method App\Models\User::notify()
, Because I am not logged in.
from cms.
Breeze Wouldn't you use it?
from cms.
Related Issues (20)
- Trying to get in touch regarding a security issue
- Reported 3 Security Issues at huntr.dev HOT 2
- Admin login fails - menu has_role on non object HOT 1
- Missing some files HOT 1
- Litecms error on blog pages HOT 4
- Error in the Demo
- Stored XSS exists in Blog package of Lavalite CMS v8.1.2
- Password hash in Users setting HOT 1
- Admin test login not work HOT 5
- BadMethodCallException: Call to undefined method App\Models\Role::withTrashed() in file /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php on line 71
- Path Traversal Attack
- There is a Stored XSS
- Class App\Models\User contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Litepie\User\Interfaces\UserPolicyInterface::hasRole, Litepie\User\Interfaces\UserPolicyInterface::canDo) HOT 4
- Call to undefined method Litecms\Page\Forms\Page::grouped()
- Vulnerability Report: sXss
- run 'php artisan lavalite:install' but missing some migration table HOT 5
- [feature] can you support postgresql?
- a XSS vulnerability
- latest version following official installation steps fails
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 cms.