app/Http/Controllers/StatusCodesController.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()
    {
        $statusCodes = DB::table('statusCodes')->Paginate(6);
        return view('status_codes.index', compact('statusCodes'));
    }
public function index ( ) { $ statusCodes = DB :: table ( 'statusCodes' ) -> Paginate ( 6 ) ; return view ( 'status_codes.index' , compact ( 'statusCodes' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .