Skip to content

Instantly share code, notes, and snippets.

@ferdiunal
Created April 13, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferdiunal/001f5c7ef553f6035d9136950794abd7 to your computer and use it in GitHub Desktop.
Save ferdiunal/001f5c7ef553f6035d9136950794abd7 to your computer and use it in GitHub Desktop.
<?php
namespace Unal\Http\Requests\Admin\Settings;
use Unal\Http\Requests\Request;
class General extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return !\Sentinel::guest();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'settings.*' => 'required'
];
}
public function messages()
{
return [
'settings.*.required' => 'Bu alan boş bırakılmaz !'
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment