Is there a way to catch when I'm using a laravel tinker session to fiddle with the Models in an Observer class?
问题 I have an Observer set up to Listen to a Model 's events in order to keep my Controller clean of Logging messages. My implementation is as follows: First, a store method that does just what it's supposed to do. Create and save a new model from valid parameters. # app/Http/Controllers/ExampleController.php namespace App\Http\Controllers; use App\Http\Requests\StoreExample; use App\Example; class ExampleController extends Controller { public function __construct() { $this->middleware('auth'); }