<?php

namespace App\Http\Controllers\Student\Concerns;

use App\Models\Student;
use App\Services\School\StudentScopeService;

trait ResolvesStudentScope
{
    protected function studentScope(): StudentScopeService
    {
        return app(StudentScopeService::class);
    }

    protected function ensureStudent(): Student
    {
        return $this->studentScope()->ensureStudent();
    }
}
