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 index()
    {
        $contacts = Contact::all()->toArray();
        return array_reverse($contacts);
    }
public function index ( ) { $ contacts = Contact :: all ( ) -> toArray ( ) ; return array_reverse ( $ contacts ) ; }
Display a listing of the resource.
Display a listing of the resource .
// we return all contact information.