public function __construct() { $this->features = ProductDetail::get(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $features = ProductDetail::get(); $panel = $this->panel; return view('features.index', compact('panel', 'features')); }