ManagePowerRequest.php 594 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: cheng
 * Date: 2018/8/14
 * Time: 14:02
 */
namespace App\Http\Requests\Backend\Power;

use App\Http\Requests\Request;

class ManagePowerRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return access()->allow('manage-power');
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            //
        ];
    }
}