feat (PHP LARAVEL) 8417: initial PHP-laravel codegen integration (#574)

* feat (PHP LARAVEL) 8417: initial PHP-laravel codegen integration

* feat (PHP LARAVEL) 8417: code review adjustments

* feat (PHP LARAVEL) 8417: fix typos; add missing files; adjust readme for those unfamilar with laravel to get started quickly

* feat (PHP LARAVEL) 8417: add sample petstore server

* feat (PHP LARAVEL) 8417: adjust route service provdider and model generation
This commit is contained in:
Christoph, René Pardon
2018-07-31 18:34:33 +02:00
committed by William Cheng
parent d1fc923b66
commit f793ac25c7
205 changed files with 8380 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Source files are located at:
*
* > swagger-codegen/modules/swagger-codegen/src/main/resources/php-laravel/
*/
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});