app/Http/Controllers/Student/ChildrenController.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()
    {
        $children = Auth::User()->children() -> get();
        return view('students.children.index')->with('children', $children);
    }
public function index ( ) { $ children = Auth :: User ( ) -> children ( ) -> get ( ) ; return view ( 'students.children.index' ) -> with ( 'children' , $ children ) ; }
Display a listing of the resource.
Display a listing of the resource .