help with Laravel db issue

Jangga

Junior Member
Joined
Aug 8, 2016
Messages
196
Reaction score
11
LaravelI laid hands on one of my old laravel script and it doesn't contain the db file. I'm wondering if by any chance laravel has a shortcut/easier method to create the tables and column from the script itself...

E.g. In the script I wrote SELECT * FROM users Where name="$name"

Laravel should detect that a table is known as users & a column is known as name.. any command or ideas to help as such? Please man
 
What do you mean your script? Why are you not using Laravel Migrations to generate schema?
 
First of all you should check out, how exactly MVC works. Define schema & migrate everything to database.
P.S. Does your script even connects to the database?
 
Back
Top