/**
  * @param EntryStoreRequest $request
  * @return \Illuminate\Http\RedirectResponse
  */
 public function store(EntryStoreRequest $request)
 {
     $input = $request->only(['title', 'body']);
     $input['user_id'] = $this->guard->user()->id;
     $this->entry->addEntry($input);
     return redirect()->route('admin.entry.index');
 }
 public function testAuthorizeFailed()
 {
     $authMock = m::mock(\Illuminate\Contracts\Auth\Guard::class);
     $authMock->shouldReceive('user')->andReturn(false);
     $this->assertFalse($this->request->authorize($authMock));
 }