Exemplo n.º 1
0
 /**
  * Setup the layout used by the controller.
  *
  * @return void
  */
 protected function setupLayout()
 {
     if (!is_null($this->layout)) {
         $this->layout = View::make($this->layout);
         $this->setupAssets();
         Coded::secureApp();
     }
 }
 public function postactivatebox()
 {
     $status = Coded::activateApp(Input::get('license_key'));
     if ($status) {
         $data['status'] = 'success';
         $data['message'] = 'Software activated';
     } else {
         $data['status'] = 'error';
         $data['message'] = 'License key is invalid';
     }
     return Response::json($data);
     //return Response::json(array('status'=>'success', 'message'=>'License key is incorrect'));
     //tt(Input::all());
 }