ModelNotFoundException::setModel()

$this setModel(string $model, int|array $ids = array()) Set the affected Eloquent model and instance ids. Parameters string $model int|array $ids Return Value $this

ModelNotFoundException::getModel()

string getModel() Get the affected Eloquent model. Return Value string

ModelNotFoundException::getIds()

int|array getIds() Get the affected Eloquent model IDs. Return Value int|array

ModelNotFoundException

ModelNotFoundException class ModelNotFoundException extends RuntimeException (View source) Methods $this setModel(string $model, int|array $ids = array()) Set the affected Eloquent model and instance ids. string getModel() Get the affected Eloquent model. int|array getIds() Get the affected Eloquent model IDs.

ModelMakeCommand::__construct()

void __construct(Filesystem $files) Create a new controller creator command instance. Parameters Filesystem $files Return Value void

ModelMakeCommand::warn()

void warn(string $string, null|int|string $verbosity = null) Write a string as warning output. Parameters string $string null|int|string $verbosity Return Value void

ModelMakeCommand::table()

void table(array $headers, Arrayable|array $rows, string $style = 'default') Format input to textual table. Parameters array $headers Arrayable|array $rows string $style Return Value void

ModelMakeCommand::setLaravel()

void setLaravel(Container $laravel) Set the Laravel application instance. Parameters Container $laravel Return Value void

ModelMakeCommand::secret()

string secret(string $question, bool $fallback = true) Prompt the user for input but hide the answer from the console. Parameters string $question bool $fallback Return Value string

ModelMakeCommand::run()

int run(InputInterface $input, OutputInterface $output) Run the console command. Parameters InputInterface $input OutputInterface $output Return Value int