After downloading the project you must execute:
composer install
cp .env.example .env
php artisan key:generate
- Controller class
App\Http\Controllers\TestControler
depends uponApp\ISerializer
App\CommaSerializer
andApp\DashSerializer
implementApp\ISerializer
App\Providers\SerializerServiceProvider
registers a serializer implementation in the service container to perform automatic dependency injection
- Execute
php artisan serve
- Open a web browser and type
http://localhost:8000
- Modify
App\Providers\SerializerServiceProvider
and registerApp\DashSerializer
instead ofApp\CommaSerializer
- Reload your browser