as I was requested to handel the backend here are steps to make the app work
- you should create database name at phpMyAdmin and then put the name at .env file
- Run php artisan migrate
- composer dump-autoload
- php artisan db:seed --class=class CategorySeeder
- php artisan serve
-
url:-http://localhost:8000/register method:-post body:-
{ "name":"esraa", "email":"[email protected]", "password":"12345678", "password_confirmation":"12345678" }
-
url:-http://localhost:8000/articles method:get
-
url:-http://localhost:8000/articles method:-post body:-
{ "name":"hello ", "content":"hello world", "category_id":"1" }
-
url:-http://localhost:8000/articles/1 method:-delete
-
url:-http://localhost:8000/articles/1 method:-put body:-
{ "name":"hello ", "content":"hello world", "category_id":"1" }
-
###The category view contains paginated newest articles. url:http://localhost:8000/categories/1 method:get