App\Http\Controllers\TaskController::getViewModel PHP 메소드

getViewModel() 개인적인 정적인 메소드

private static getViewModel ( ) : array
리턴 array
    private static function getViewModel()
    {
        return ['clients' => Client::scope()->with('contacts')->orderBy('name')->get(), 'account' => Auth::user()->account];
    }