private function composeLessonForm() { view()->composer('site.lessons.fields', function ($view) { $view->with('products', \App\Models\Product::lists('name', 'id'))->with('links', \App\Models\Link::lists('name', 'id')); }); }
private function composeLessonForm() { view()->composer('site.lessons.fields', function ($view) { $view->with('products', \App\Models\Product::lists('name', 'id'))->with('links', \App\Models\Link::lists('name', 'id')); }); }