public function store()
{
// Validate the Input data.
$input = Input::only('name', 'slug', 'description');
$validator = $this->validate($input);
if ($validator->passes()) {
// Create a Role Model instance.
Role::create($input);
// Prepare the flash message.
$status = __d('users', 'The Role <b>{0}</b> was successfully created.', $input['name']);
return Redirect::to('admin/roles')->withStatus($status);
}
// Errors occurred on Validation.
$status = $validator->errors();
return Redirect::back()->withInput()->withStatus($status, 'danger');
}