July 2018
Intermediate to advanced
420 pages
8h 46m
English
Let's set up the one-to-one relationship between Builder and Bike. This means that a Bike will have just one Builder.
<?phpnamespace App;use Illuminate\Database\Eloquent\Model;/*** @SWG\Definition(* definition="Builder",* required={"name", "description", "location"},* @SWG\Property(* property="name",* type="string",* description="Builder name",* example="Jesse James"* ),* @SWG\Property(* property="description",* type="string",* description="Famous Motorcycle builder from Texas",* example="Austin Speed Shop"* ),* @SWG\Property(* property="location",* type="string",* description="Texas/USA",* example="Austin, Texas"* ),* )*/class Builder ...Read now
Unlock full access