app/Http/Controllers/Admin/MonthlyDatas/StudentHoursController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $students = Role::find(config('global.STUDENT_ROLE_ID'))->users()->get();
        return view('admin.monthlydata.studenthours.index')->with('students', $students);
    }
public function index ( ) { $ students = Role :: find ( config ( 'global.STUDENT_ROLE_ID' ) ) -> users ( ) -> get ( ) ; return view ( 'admin.monthlydata.studenthours.index' ) -> with ( 'students' , $ students ) ; }
Display a listing of the resource.
Display a listing of the resource .