app/Http/Controllers/ContactController.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 list($resultatsParPage)
    {
        if($resultatsParPage == '0') {
            $contacts = Contact::all();
            return $contacts;
        } else {
            return Contact::paginate($resultatsParPage);
        }
    }
public function list ( $ resultatsParPage ) { if ( $ resultatsParPage == '0' ) { $ contacts = Contact :: all ( ) ; return $ contacts ; } else { return Contact :: paginate ( $ resultatsParPage ) ; } }
Display a listing of the resource.
Display a listing of the resource .