Some checks failed
continuous-integration/drone/push Build is failing
- 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
21 lines
286 B
PHP
21 lines
286 B
PHP
<?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();
|
|
}
|
|
|
|
}
|