I made a command in which I have to pass my model name to process some data. How can I call it from the controller as I can't mention it as App\Models\{ModelName} because in controller the model's name is passed as a string.
Basically my doubt is, if in a function of a controller my model's name is passed as a string, how can I fetch it?