php - Linking Laravel project with MAMP database -


i following tutorial on creating social network laravel v5.2. person in tutorial uses vagrant/homestead life of me not working resorted mamp view site locally. have hit roadblock.

i trying configure ".env" file connect mamp database migrations have been written can executed don't know how go this?

this ".env" file.

app_env=local app_debug=true app_key=base64:7dp18ga9x3wifp6wqguy6usmu+rrgru2qpkt4gydupi= app_url=http://localhost  db_connection=mysql db_host=127.0.0.1 db_port=3306 db_database=unitedb db_username=root db_password=root  cache_driver=file session_driver=file queue_driver=sync  redis_host=127.0.0.1 redis_password=null redis_port=6379  mail_driver=smtp mail_host=mailtrap.io mail_port=2525 mail_username=null mail_password=null mail_encryption=null 

"unitedb" database created in mamp phpmy admin did not work , don't know go here. if try run "php artisan migrate" on command line within project file returns

"[symfony\component\debug\exception\fatalthrowableerror] parse error: syntax error, unexpected end of file, expecting function (t_function)"

any appreciated! new php/laravel have no clue on how work.

thanks.

it syntactical error. decent ides highlight or underline error in project files. issue in of migration files (based on $table variable) in place contains code being executed when migrating (e.g.: schema class).

sounds have missing semicolon in migration file. show me migration file if cannot solve problem


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -