To create a model in Laravel, follow these steps:
main.php33 chars2 lines
Replace ModelName
with the name of your model, in singular form. This command will generate a file named ModelName.php
in the app/
directory of your Laravel project.
main.php283 chars19 lines
main.php478 chars21 lines
gistlibby LogSnag