React JS Tutorial #3 | Laravel with React JS | Install Laravel 9 | Create GET API | Run in Postman

Опубликовано: 01 Январь 1970
на канале: Stack Developers
1,443
43

React JS Tutorial from Beginning:
   • React JS Tutorial with Laravel for Be...  

In this video, we are going to install Laravel 9 for the backend of our React App. We will create GET Users API that we will use to show the users from the database on our React App.

1) Create Laravel 9 Project :-
Run below command to create Laravel 9 Project with name laravel9.
composer create-project laravel/laravel laravel9

2) Create Database laravel9

3) Connect Database with .env file of laravel9 Project

4) Run "php artisan migrate" command to populate the database with default laravel tables including users table

5) Insert few users either from PHPMyadmin or Laravel Seeder commands.

6) Create APIController in laravel9 Project
php artisan make:controller APIController

7) Create Route in api.php file
Route::get('users','App\Http\Controllers\APIController@getUsers');

8) Create getUsers function :-
Create getUsers function at APIController to get all users from users table and return with json.

9) Include User Model :-
Don't forgot to include User Model at APIController

Our Get API is ready to fetch all the users that we can either run in Postman, VSCode Thunder Bird or in any Browser as well.

►Click here to subscribe for updates -    / stackdevelopers  

Popular Stack Developers Series that can help you:-

►Laravel 9 Tutorial (Create Multi-Vendor E-commerce Website) -    • Laravel Multi Vendor Tutorial  

►Laravel Tutorial for Beginners -    • Laravel Tutorial for Beginners | Adva...  

►GIT Tutorial for Beginners -    • Git Tutorial for Beginners | Create y...  

►Laravel API Tutorial -    • Laravel API Tutorial | Create API fro...  

►Laravel Interview Questions -    • Laravel Interview Questions & Answers...  

►jQuery Tutorial -    • jQuery Tutorial  

►Laravel Basic E-commerce Series -    • Make Admin Panel / E-commerce Website...  

►Laravel Dating Series -    • Make Dating / Social Networking Websi...  

►Join this channel to get the complete source code of all series:
   / @stackdevelopers  

Follow Stack Developers on Social Media to get updates and resolve your queries
►Like Facebook Page to get updates -   / stackdevelopers2  
►Join Facebook Group to resolve your queries -   / stackdevelopers  
►Follow on Instagram -   / stackdevelopers2  
►Follow on GitHub - https://github.com/stackdevelopers

#reactjs #reactjstutorial #reactjsforbeginners #reactjscourse


Смотрите видео React JS Tutorial #3 | Laravel with React JS | Install Laravel 9 | Create GET API | Run in Postman онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Stack Developers 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,44 раз и оно понравилось 4 людям.