mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Move Group to its own namespace
We’ll need to add commands etc. for group management in the future
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php namespace Flarum\Api\Actions\Groups;
|
<?php namespace Flarum\Api\Actions\Groups;
|
||||||
|
|
||||||
use Flarum\Core\Users\Group;
|
use Flarum\Core\Groups\Group;
|
||||||
use Flarum\Api\Actions\SerializeCollectionAction;
|
use Flarum\Api\Actions\SerializeCollectionAction;
|
||||||
use Flarum\Api\JsonApiRequest;
|
use Flarum\Api\JsonApiRequest;
|
||||||
use Tobscure\JsonApi\Document;
|
use Tobscure\JsonApi\Document;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<?php namespace Flarum\Core\Users;
|
<?php namespace Flarum\Core\Groups;
|
||||||
|
|
||||||
use Flarum\Core\Model;
|
use Flarum\Core\Model;
|
||||||
|
|
@@ -1,5 +1,7 @@
|
|||||||
<?php namespace Flarum\Core\Users;
|
<?php namespace Flarum\Core\Users;
|
||||||
|
|
||||||
|
use Flarum\Core\Groups\Group;
|
||||||
|
|
||||||
class Guest extends User
|
class Guest extends User
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?php namespace Flarum\Core\Users;
|
<?php namespace Flarum\Core\Users;
|
||||||
|
|
||||||
|
use Flarum\Core\Groups\Group;
|
||||||
use Flarum\Core\Model;
|
use Flarum\Core\Model;
|
||||||
use Flarum\Core\Notifications\Notification;
|
use Flarum\Core\Notifications\Notification;
|
||||||
use Illuminate\Contracts\Hashing\Hasher;
|
use Illuminate\Contracts\Hashing\Hasher;
|
||||||
@@ -487,7 +488,7 @@ class User extends Model
|
|||||||
*/
|
*/
|
||||||
public function groups()
|
public function groups()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany('Flarum\Core\Users\Group', 'users_groups');
|
return $this->belongsToMany('Flarum\Core\Groups\Group', 'users_groups');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user