@@ -2,13 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Afrittella\BackProject\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Afrittella\BackProject\Facades\MediaManager; |
|
| 6 | 5 | use Afrittella\BackProject\Repositories\Attachments; |
| 7 | 6 | use Afrittella\BackProject\Repositories\Criteria\Attachments\All; |
| 8 | -use Afrittella\BackProject\Repositories\Criteria\Attachments\ByUser; |
|
| 9 | 7 | use Illuminate\Http\Request; |
| 10 | 8 | use Illuminate\Support\Facades\Auth; |
| 11 | -use Illuminate\Support\Facades\Storage; |
|
| 12 | 9 | use Prologue\Alerts\Facades\Alert; |
| 13 | 10 | |
| 14 | 11 | class MediaController extends Controller |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Afrittella\BackProject\Http\Requests\PermissionEdit; |
| 7 | 7 | use Afrittella\BackProject\Repositories\Permissions; |
| 8 | 8 | use Afrittella\BackProject\Repositories\Roles; |
| 9 | -use Illuminate\Http\Request; |
|
| 10 | 9 | use Prologue\Alerts\Facades\Alert; |
| 11 | 10 | |
| 12 | 11 | class PermissionsController extends Controller |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Afrittella\BackProject\Http\Requests\RoleEdit; |
| 7 | 7 | use Afrittella\BackProject\Repositories\Permissions; |
| 8 | 8 | use Afrittella\BackProject\Repositories\Roles; |
| 9 | -use Illuminate\Http\Request; |
|
| 10 | 9 | use Prologue\Alerts\Facades\Alert; |
| 11 | 10 | |
| 12 | 11 | class RolesController extends Controller |
@@ -3,13 +3,11 @@ |
||
| 3 | 3 | namespace Afrittella\BackProject\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use Afrittella\BackProject\Http\Requests\AccountStore; |
| 6 | -use Afrittella\BackProject\Http\Requests\AccountEdit; |
|
| 7 | 6 | use Afrittella\BackProject\Repositories\Users; |
| 8 | 7 | use Afrittella\BackProject\Repositories\Roles; |
| 9 | 8 | use Afrittella\BackProject\Http\Requests\UserAdd; |
| 10 | 9 | use Afrittella\BackProject\Http\Requests\UserEdit; |
| 11 | 10 | use Afrittella\BackProject\Events\UserRegistered as Registered; |
| 12 | -use Illuminate\Http\Request; |
|
| 13 | 11 | use Prologue\Alerts\Facades\Alert; |
| 14 | 12 | use Auth; |
| 15 | 13 | |
@@ -26,6 +26,9 @@ |
||
| 26 | 26 | return $this->model->withDepth()->find($id, $columns); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $name |
|
| 31 | + */ |
|
| 29 | 32 | public function tree($name) |
| 30 | 33 | { |
| 31 | 34 | $root = $this->findBy('name', $name); |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Afrittella\BackProject\Repositories; |
| 3 | 3 | |
| 4 | -use Afrittella\BackProject\Contracts\BaseRepository; |
|
| 5 | - |
|
| 6 | 4 | class Menus extends Base |
| 7 | 5 | { |
| 8 | 6 | function model() |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Afrittella\BackProject\Repositories; |
| 3 | 3 | |
| 4 | -use Afrittella\BackProject\Contracts\BaseRepository; |
|
| 5 | - |
|
| 6 | 4 | class Permissions extends Base |
| 7 | 5 | { |
| 8 | 6 | public function model() |
@@ -1,8 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Afrittella\BackProject\Repositories; |
| 3 | 3 | |
| 4 | -use Afrittella\BackProject\Contracts\BaseRepository; |
|
| 5 | - |
|
| 6 | 4 | class Roles extends Base |
| 7 | 5 | { |
| 8 | 6 | public function model() |
@@ -97,6 +97,9 @@ |
||
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $name |
|
| 102 | + */ |
|
| 100 | 103 | public function getUniqueUsername($name) |
| 101 | 104 | { |
| 102 | 105 | $nrRand = rand(0,100); |
@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Afrittella\BackProject\Repositories; |
| 4 | 4 | |
| 5 | -use Afrittella\BackProject\Contracts\BaseRepository; |
|
| 6 | 5 | use Afrittella\BackProject\Models\SocialAccount; |
| 7 | -use Kalnoy\Nestedset\QueryBuilder; |
|
| 8 | 6 | use Laravel\Socialite\Contracts\User as SocialProvider; |
| 9 | 7 | |
| 10 | 8 | class Users extends Base |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Afrittella\BackProject\Http\Controllers\Auth; |
| 3 | 3 | |
| 4 | 4 | use Afrittella\BackProject\Http\Controllers\Controller; |
| 5 | - |
|
| 6 | 5 | use Illuminate\Foundation\Auth\SendsPasswordResetEmails; |
| 7 | 6 | use Illuminate\Http\Request; |
| 8 | 7 | use Illuminate\Support\Facades\Password; |