-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Selene Melo edited this page May 5, 2021
·
2 revisions
- GET: Retrieve resources
- POST: Create resources
- PUT: Update resources
- DELETE: Delete resources
- Framework: Laravel
- Requests: PHP, VScode, Postman, Wamp, GitBash
$ composer create-project --prefer-dist laravel/laravel learning $ php artisan serve
Laravel development server started: http://127.0.0.1:8000 - Upload database and add its credentials to the .env file located in the root of the project.
- DB_DATABASE = learning
- DB_USERNAME = root
- DB_PASSWORD =
- Run
$ php artisan make:model Article -m - Go to class CreateUsersTable() and add two lines:
$table->string('title')$table->string('body')
- Run
$ php artisan migrate - Activate XAMPP control Panel and start MYSQL
- Acess: http://localhost/phpmyadmin/