I am absolutely new to laravel. I have an open source laravel application for which I have downloaded the code. I was able to get the home page running using these links:
- https://www.rosehosting.com/blog/install-laravel-on-ubuntu-16-04/
- https://askubuntu.com/questions/764782/install-laravel-5-on-ubuntu-16-04
- http://idroot.net/linux/install-laravel-ubuntu-16-04/
- https://www.howtoforge.com/tutorial/install-laravel-on-ubuntu-for-apache/
none of the other webpages are running. I have to manually change the path in the address bar from localhost/public to localhost/public/index.php. Even after this, the webpage that executes, shows no css.If I try to register a user, I get
SQLSTATE[HY000]: General error: 1364 Field 'username' doesn't have a default value
I have referred to the following links in an attempt to solve the issue but no use -
- Access denied for user 'root'@'localhost' - Laravel
- https://laravel.com/docs/4.2/quick#routing
- https://laravel.com/docs/5.1/quickstart#database-migrations
- https://laravel.com/docs/5.1/database
I don't have any data in the database as I cannot understand how to import it. My directory structure is
/var/www/laravelApplicaton
-app/
-artisan
-bootstrap/
-composer.json
-composer.lock
-config/
-database/
-gulpfile.js
-package.json
-phpunit.xml
-public/
-readme.md
-resources/
-routes/
-server.php
-storage/
-tests/
-vendor/
I am using ubuntu 16.04 server; Php7.0.