A simple blog for demonstration purpose. Based on Laravel 7.0
- Laravel 7.0
- PHP >= 7.2.5
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- BCMath PHP Extension
You can try the live demo : http://gentle-everglades-40337.herokuapp.com/
user: [email protected] | password: password
git clone https://github.com/milon/laravel-blog.git blog
cd blog
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed
If you want dummy data, then run this-
php artisan db:seed --class=DummyDataSeeder
This projects exposes some API endpoints. You could request those endpoints with the api_token
passed as query parameters, like this- /api/tags?api_token=YOUR_API_KEY
. You can also pass the token as a Authorization Bearer token. The API key could be obtained from /api/auth/token
endpoint. Available endpoints are-
/api/auth/token
/api/auth/reset-password
/api/auth/change-password
/api/tags
/api/categories
/api/users // only accessible by admin
/api/posts
These endpoints are also available as a Postman collection here.
Feel free to email me, if you have any question.