Created
April 13, 2016 14:39
-
-
Save ferdiunal/001f5c7ef553f6035d9136950794abd7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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