Category: Laravel

Retrieve All data from a table Create the Controller: php artisan make:Controller Country\CountryController; Here is creating the controller in the Country Folder. Then create the route.Create the route: Go to routes>api.php Route::get(‘country’, ‘Country\CountryController@country’); Model File…