Exemplo n.º 1
0
 /**
  * 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'));
 }
Exemplo n.º 2
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /**
  * 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);
 }
Exemplo n.º 5
0
 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);
 }