{"id":1323,"date":"2016-12-30T15:34:18","date_gmt":"2016-12-30T15:34:18","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1323"},"modified":"2016-12-30T15:57:40","modified_gmt":"2016-12-30T15:57:40","slug":"opdracht-2-auction","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/12\/30\/opdracht-2-auction\/","title":{"rendered":"Opdracht 2 Auction"},"content":{"rendered":"<p>Source: <a href=\"https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int\">https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int <\/a>(laravel5.1 PRETTY GOOD)<\/p>\n<p>Installation:<\/p>\n<ol>\n<li>Clone from <a href=\"https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int\">https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int<\/a>\n<pre class=\"lang:default decode:true\">git clone https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int.git<\/pre>\n<p>&nbsp;<\/li>\n<li>Then go to &#8216;webdev-opdracht2.int&#8217; directory\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Documents\/works\/laravel$ cd webdev-opdracht2.int\/<\/pre>\n<\/li>\n<li>Install required components:\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/webdev-opdracht2.int$ composer install<\/pre>\n<\/li>\n<li>Create a database &#8216;opdracht2&#8217; via phpmyadmin<\/li>\n<li>Edit\/create .env file and set the database configuration<\/li>\n<li>Migrate the required tables\n<pre class=\"lang:default decode:true \">php artisan migrate<\/pre>\n<\/li>\n<li>generate the new key\n<pre class=\"lang:default decode:true \">php artisan key:generate<\/pre>\n<\/li>\n<li>set file permission to 777 for \/storage\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/webdev-opdracht2.int$ sudo chmod -R 777 storage\/<\/pre>\n<p>&nbsp;<\/li>\n<li>Test it http:\/\/localhost:8000\/\n<pre class=\"lang:default decode:true \">php5.6 artisan serve<\/pre>\n<p>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<\/p>\n<pre class=\"lang:default decode:true \">@include('..\/reusable\/spotlight')<\/pre>\n<p>CAUSE THE ERROR. SO FOR SAVING TIME, I JUST COMMENTED THE LINE<\/p>\n<pre class=\"lang:default decode:true \">{{-- @include('..\/reusable\/spotlight') --}}<\/pre>\n<p>PLS DO THIS FOR ALL THE BLADES PAGES CONTAIN THE ABOVE LINE! (IF I HAVE TIME I&#8217;D INSPECT WHY \/reusable\/spotlight.blade.php SHOWS THE ERROR)!!!<br \/>\nTO SHOW PHP DEBUG IN LARAVEL, PUT<\/p>\n<pre class=\"lang:default decode:true \">ini_set('display_errors',true);<\/pre>\n<p>AT THE BEGINNING OF \/app\/Http\/routes.php FILE!<br \/>\nBUT IT SHOWED WEIRD ERROR:<\/p>\n<pre class=\"lang:default decode:true \">Class 'App\\Exceptions\\App' not found<\/pre>\n<p>ALSO IT&#8217;S IMPORTANT TO SET A FEW REQUIRED INITIAL DATA IN THE DATABASE LIKE FOR &#8216;countries&#8217; (just input &#8216;code&#8217;: &#8216;NL&#8217;, &#8216;name&#8217;: &#8216;Nederland&#8217;) AND &#8216;auctionstyles&#8217; (&#8216;name&#8217;: &#8216;Classics&#8217;).<br \/>\nOK. IT SHOULD OKAY NOW. REGISTER FIRST THEN ADD A NEW AUCTION. Here is the screen from http:\/\/localhost:8000\/myauctions<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1327\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_-1024x965.png\" alt=\"webdev-opdracht2-int\" width=\"840\" height=\"792\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_-1024x965.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_-300x283.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_-768x724.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_-1200x1131.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/webdev-opdracht2.int_.png 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int (laravel5.1 PRETTY GOOD) Installation: Clone from https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int git clone https:\/\/github.com\/davidcassedie\/webdev-opdracht2.int.git &nbsp; Then go to &#8216;webdev-opdracht2.int&#8217; directory teddy@teddy-K43SJ:~\/Documents\/works\/laravel$ cd webdev-opdracht2.int\/ Install required components: teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/webdev-opdracht2.int$ composer install Create a database &#8216;opdracht2&#8217; via phpmyadmin Edit\/create .env file and set the database configuration Migrate the required tables php artisan migrate generate the new key php artisan key:generate &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/12\/30\/opdracht-2-auction\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Opdracht 2 Auction&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,13],"tags":[],"class_list":["post-1323","post","type-post","status-publish","format-standard","hentry","category-laravel","category-tutorial"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1323"}],"version-history":[{"count":3,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1323\/revisions"}],"predecessor-version":[{"id":1328,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1323\/revisions\/1328"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}