Professional Documents
Culture Documents
Laravel 7.0 Blog: Some Screenshots
Laravel 7.0 Blog: Some Screenshots
Laravel 7.0 Blog: Some Screenshots
0 blog
The purpose of this repository is to show good development practices on Laravel as well as to
present cases of use of the framework's features like:
Authentication
API
o Token authentication
o API Resources
o Versioning
Blade
Broadcasting
Cache
Email Verification
Filesystem
Helpers
Horizon
Localization
Mail
Migrations
Policies
Providers
Requests
Seeding & Factories
Testing
Bootstrap 4
PHP-CS-Fixer
Travis CI
Font Awesome
Vue.js
axios
Redis
spatie/laravel-medialibrary
Many more to discover.
Some screenshots
You can find some screenshots of the application on : https://imgur.com/a/Jbnwj
Installation
Development environment requirements :
There is no need to run php artisan serve. PHP is already running in a dedicated
container.
Before starting
You need to run the migrations with the seeds :
This will create a new user that you can use to sign in :
email: darthvader@deathstar.ds
password: 4nak1n
Useful commands
Seeding the database :
Running php-cs-fixer :
Generating backup :
Discover package
Then, you can use this token either as url parameter or in Authorization header :
# Url parameter
GET http://laravel-blog.app/api/v1/posts?api_token=your_private_token_here
# Authorization Header
curl --header "Authorization: Bearer your_private_token_here"
http://laravel-blog.app/api/v1/posts
API are prefixed by api and the API version number like so v1.
License
This project is released under the MIT license.