public function run()
 {
     Subject::create(['name' => 'ACCOUNTANCY']);
     Subject::create(['name' => 'ARCHITECTURE']);
     Subject::create(['name' => 'COMMERCE']);
     Subject::create(['name' => 'COMPUTER SCIENCE AND TECHNOLOGY']);
     Subject::create(['name' => 'ELECTRONICS AND COMMUNICATION']);
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  Request  $request
  * @return Response
  */
 public function store(Request $request)
 {
     $validator = Validator::make($data = $request->all(), Subject::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     Subject::create($data);
     return Redirect::route($this->route . 'index')->with('message', 'New Subject/Trade has been Added!');
 }