- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
This commit is contained in:
20
app/Services/RoleService.php
Normal file
20
app/Services/RoleService.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use App\Repositories\Role;
|
||||
|
||||
class RoleService
|
||||
{
|
||||
|
||||
public function __construct(Role $roleRepository)
|
||||
{
|
||||
$this->roleRepository = $roleRepository;
|
||||
}
|
||||
|
||||
public function getAll()
|
||||
{
|
||||
return $this->roleRepository::all();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user