Source: https://github.com/davidcassedie/webdev-opdracht2.int (laravel5.1 PRETTY GOOD)
Installation:
- Clone from https://github.com/davidcassedie/webdev-opdracht2.int
1git clone https://github.com/davidcassedie/webdev-opdracht2.int.git
- Then go to ‘webdev-opdracht2.int’ directory
1teddy@teddy-K43SJ:~/Documents/works/laravel$ cd webdev-opdracht2.int/ - Install required components:
1teddy@teddy-K43SJ:~/Documents/works/laravel/webdev-opdracht2.int$ composer install - Create a database ‘opdracht2’ via phpmyadmin
- Edit/create .env file and set the database configuration
- Migrate the required tables
1php artisan migrate - generate the new key
1php artisan key:generate - set file permission to 777 for /storage
1teddy@teddy-K43SJ:~/Documents/works/laravel/webdev-opdracht2.int$ sudo chmod -R 777 storage/
- Test it http://localhost:8000/
1php5.6 artisan serve
NOTE: FOR THE OTHERS ROUTES LIKE http://localhost:8000/auth/register, I GOT BLANK PAGE. THIS IS BECAUSE IN MANY BLADES PAGE IN /resources/views/ (FOR EXAMPLE: /auth/register.blade.php), I FOUND THIS LINE
1@include('../reusable/spotlight')
CAUSE THE ERROR. SO FOR SAVING TIME, I JUST COMMENTED THE LINE
1{{-- @include('../reusable/spotlight') --}}
PLS DO THIS FOR ALL THE BLADES PAGES CONTAIN THE ABOVE LINE! (IF I HAVE TIME I’D INSPECT WHY /reusable/spotlight.blade.php SHOWS THE ERROR)!!!
TO SHOW PHP DEBUG IN LARAVEL, PUT
1ini_set('display_errors',true);
AT THE BEGINNING OF /app/Http/routes.php FILE!
BUT IT SHOWED WEIRD ERROR:
1Class 'App\Exceptions\App' not found
ALSO IT’S IMPORTANT TO SET A FEW REQUIRED INITIAL DATA IN THE DATABASE LIKE FOR ‘countries’ (just input ‘code’: ‘NL’, ‘name’: ‘Nederland’) AND ‘auctionstyles’ (‘name’: ‘Classics’).
OK. IT SHOULD OKAY NOW. REGISTER FIRST THEN ADD A NEW AUCTION. Here is the screen from http://localhost:8000/myauctions