/** * Show the form for creating a new resource. * * @return Response */ public function create() { $result = Hasfeature::orderBy('id', 'ASC'); $countstr = '操作'; $count = $result->count(); $users = User::where('is_admin', 0)->orderBy('id', 'DESC')->lists('name', 'id'); $features = Feature::all(); // lists('innerhtml', 'id'); return view('Hasfeature.create', compact('countstr', 'count', 'users', 'features')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $features = Feature::all(); $number = 0; return View('features.listfeature', compact('features'))->with('number', $number); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $features = Feature::all(); return view('features.index', compact('features')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $features = Feature::all(); $actions = ActionSchema::getActionSchema($this->module); return view('backend.feature.index')->with('content_title', 'Features Management')->with('features', $features)->with('actions', $actions)->with('module', $this->module); }
public function makeManagePage() { $features = []; $features = Feature::all(); $actions = Feature::actionSchema(); //return Feature::test(); return View::make('backend.feature.index')->with('actions', $actions)->with('features', $features)->with('module', $this->module); }