{"id":1434,"date":"2017-01-11T07:37:55","date_gmt":"2017-01-11T07:37:55","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1434"},"modified":"2017-01-11T08:25:17","modified_gmt":"2017-01-11T08:25:17","slug":"booking-application-developed-on-laravel-platform","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/01\/11\/booking-application-developed-on-laravel-platform\/","title":{"rendered":"Booking application developed on Laravel platform"},"content":{"rendered":"<p>Source: <a href=\"https:\/\/github.com\/juanmvega\/my-booking\">https:\/\/github.com\/juanmvega\/my-booking<\/a><br \/>\nTutorial: <a href=\"https:\/\/tests4geeks.com\/laravel-tutorial\/\" target=\"_blank\">Laravel Tutorial<\/a><\/p>\n<ol>\n<li>Clone the app\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel$ git clone https:\/\/github.com\/juanmvega\/my-booking.git\r\nCloning into 'my-booking'...\r\nremote: Counting objects: 6233, done.\r\nremote: Total 6233 (delta 0), reused 0 (delta 0), pack-reused 6233\r\nReceiving objects: 100% (6233\/6233), 6.70 MiB | 1.28 MiB\/s, done.\r\nResolving deltas: 100% (1576\/1576), done.\r\nChecking connectivity... done.<\/pre>\n<p>Check the files in \/laravel\/my-booking\/ directory!<\/li>\n<li>Go to the the directory and use composer to install the dependencies\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel$ cd my-booking\/\r\nteddy@teddy-K43SJ:~\/Documents\/works\/laravel\/my-booking$ composer install\r\nYou are running composer with xdebug enabled. This has a major impact on runtime performance. See https:\/\/getcomposer.org\/xdebug\r\nLoading composer repositories with package information\r\nInstalling dependencies (including require-dev) from lock file\r\nNothing to install or update\r\nGenerating autoload files\r\n&gt; Illuminate\\Foundation\\ComposerScripts::postInstall\r\n&gt; php artisan optimize\r\nGenerating optimized class loader<\/pre>\n<p>&#8216;Vendor&#8217; directory is already exist! so the dependencies are already downloaded!<\/li>\n<li>Create a new database &#8216;demo_data&#8217; via phpmyadmin<\/li>\n<li>Create a new table &#8216;demo_data&#8217;\n<pre class=\"lang:default decode:true \">CREATE TABLE IF NOT EXISTS `demo_data` (\r\n  `roomid` int(10) unsigned NOT NULL AUTO_INCREMENT,\r\n  `name` varchar(50) NOT NULL,\r\n  `roomname` varchar(50) NOT NULL,\r\n  `features` tinytext NOT NULL,\r\n  `baseprice` float NOT NULL,\r\n  `occupancy` tinyint(4) NOT NULL,\r\n  `deleted_at` datetime NOT NULL,\r\n  `created_at` datetime NOT NULL,\r\n  `updated_at` datetime NOT NULL,\r\n  PRIMARY KEY (`roomid`)\r\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;<\/pre>\n<\/li>\n<li>Edit .env file to add the database setting<br \/>\n<span class=\"rcp-restricted-content-message\">SORRY, ONLY ADMIN CAN SHOW THIS!<\/span><\/li>\n<li>\u00a0Modify the files permission in \/storage\/ and \/bootstrap\/ directories\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/my-booking$ sudo chmod -R 777 storage\/\r\nteddy@teddy-K43SJ:~\/Documents\/works\/laravel\/my-booking$ sudo chmod -R 777 bootstrap\/<\/pre>\n<\/li>\n<li>Test the app in http:\/\/localhost\/works\/laravel\/my-booking\/public\/rooms<br \/>\nWORKS!!!<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1440\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front-1024x380.png\" alt=\"my-booking-front\" width=\"840\" height=\"312\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front-1024x380.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front-300x111.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front-768x285.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front-1200x445.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/my-booking-front.png 1364w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<li>Something still not correct. in \/resources\/views\/layout\/layout.blade.php, I still have to add jQuery library because bootstrap need jQuery!\n<pre class=\"lang:default decode:true \">...\r\n&lt;script src=\"https:\/\/code.jquery.com\/jquery-1.12.0.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.6\/js\/bootstrap.min.js\" integrity=\"sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS\" crossorigin=\"anonymous\"&gt;&lt;\/script&gt;\r\n&lt;html&gt;<\/pre>\n<p>Also I have to change many links on many blade files (index.blade.php, create.blade.php, show.blade.php, edit.blade.php) that those not correct. Change from &#8216;\/laravel\/&#8217; to &#8216;\/works\/laravel\/my-booking\/&#8217;. Also change from &#8216;http:\/\/tutorials.juanmvega.com\/laravel\/&#8217; to &#8216;\/works\/laravel\/my-booking\/&#8217;.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/github.com\/juanmvega\/my-booking Tutorial: Laravel Tutorial Clone the app teddy@teddy-K43SJ:~\/Documents\/works\/laravel$ git clone https:\/\/github.com\/juanmvega\/my-booking.git Cloning into &#8216;my-booking&#8217;&#8230; remote: Counting objects: 6233, done. remote: Total 6233 (delta 0), reused 0 (delta 0), pack-reused 6233 Receiving objects: 100% (6233\/6233), 6.70 MiB | 1.28 MiB\/s, done. Resolving deltas: 100% (1576\/1576), done. Checking connectivity&#8230; done. Check the files in \/laravel\/my-booking\/ directory! &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/01\/11\/booking-application-developed-on-laravel-platform\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Booking application developed on Laravel platform&#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-1434","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\/1434","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=1434"}],"version-history":[{"count":6,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1434\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1434\/revisions\/1441"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}