Laravel Stub Customization

Laravel Stub
<?phpnamespace {{ namespace }};use Illuminate\Foundation\Http\FormRequest;class {{ class }} extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
//
];
}
}
php artisan make:request PostRequest
php artisan stub:publish

--

--

--

Freelancer Developer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Abstraction a Paradox ?

Prediction Using XGB Regressor using Python 3

5 things to do before taking your private API public

Fail to prepare, Prepare to fail. A week with COVID-19.

Why not Trying a New Approach?

Keep Specific Metrics in Prometheus through Prometheus Job

Smartbridge Hackathon — Innovation Towards Success

4 best practices for strategically maximizing the ROI of cloud migrations

4 best practices for strategically maximizing the ROI of cloud migrations

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Saurabh Mahajan

Saurabh Mahajan

Freelancer Developer.

More from Medium

Laravel: The Best PHP Framework for Building Modern Web Apps

Carbon Add Years To Date In Laravel

Laravel Illuminate\Contracts\Container\BindingResolutionException

How to Create Table Using Laravel Migration?