for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Acacha\Events\Http\Controllers;
use Acacha\Events\Http\Requests\UserStoreEvent;
use Acacha\Events\Models\Event;
use Auth;
/**
* Class APIUserEventsController.
*
* @package App\Http\Controllers
*/
class APIUserEventsController extends Controller
{
* Show list of events.
* @return \Illuminate\Database\Eloquent\Collection|static[]
public function index()
return Auth::user()->events;
}
* Store event for logged user.
public function store(UserStoreEvent $request)
$event = Event::create($request->only(['name','user_id','description']));
create()
Acacha\Events\Models\Event
created()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
Auth::user()->events()->save($event);
return $event;
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.