Make Guard

php artisan fibers:make:guard <Title> [Options]

Guard command will create a FormRequest, automatically populating rules array with attributes collected from a model.

Set targeted model by using --target= options to skip model input prompt.

Parameters

Parameter Description
title Title is used also for other naming derivatives. It is normalized automatically.

Options

Command Description
--target= Target model

Use --silent|S option to suppress unnecessary input prompt and to populate data automatically.