Skip to content

Instantly share code, notes, and snippets.

Job Schipper desjob

  • Utrecht, The Nertherlands
Block or report user

Report or block desjob

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@desjob
desjob / BookController.php
Created Oct 21, 2015
binding models on request data in laravel
View BookController.php
<?php namespace LS\Http\Controllers;
...
class AnnualReportController extends Controller
{
public function store(BookRequest $request, Book $newBook, Author $byAuthor)
{
$newBook->fill($request->all());
$newBook->author()->associate($byAuthor);
You can’t perform that action at this time.