Published 2 months ago by LaybackSpin
Hi! I'm having troubles creating tables using laravel. Thus far I've been creating them manually in MyPHPAdmin but when I want to reference the table in the controller I get errors regarding "use App\nameOfTable". Is this App"nameOfTable" suppose to be generated through an artisan code?
I get errors regarding "use App\nameOfTable"
Migrations are not required, existing tables are fine. But most use migrations.
But how about more code, like model, controller, etc.
Have you viewed Jeffrey's intro video series?
Here are references:
It would help you if you worked some of the examples from the docs.
Thank you for your suggestions. Snapey, when you said you need to create models. Are you referring the the "App\nameOfTable"? So this model file isn't auto generated? I'm working on a project made by a previous team and so I have the "App___" files of pre-existing tables. The syntax in those files seem confusing so I gathered it was auto-generated by artisan.