{"id":1289,"date":"2016-12-29T08:45:40","date_gmt":"2016-12-29T08:45:40","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1289"},"modified":"2017-01-04T05:13:22","modified_gmt":"2017-01-04T05:13:22","slug":"quiz","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/12\/29\/quiz\/","title":{"rendered":"Quiz"},"content":{"rendered":"<p>source: <a href=\"https:\/\/github.com\/sms516\/quiz\">https:\/\/github.com\/sms516\/quiz<br \/>\n<\/a>online: <a href=\"http:\/\/dojang.nz\/\">http:\/\/dojang.nz\/<\/a><\/p>\n<p>Installation:<\/p>\n<ol>\n<li>Create a new laravel project:\n<pre class=\"lang:default decode:true \">composer create-project --prefer-dist laravel\/laravel quiz<\/pre>\n<p>&nbsp;<\/li>\n<li>Download the app from <a href=\"https:\/\/github.com\/sms516\/quiz\" target=\"_blank\">https:\/\/github.com\/sms516\/quiz<\/a>. It&#8217;s better to donwload in zip file then extract the content in \/works\/laravel\/quiz\/ directory. Overwrite the existing files and directories.<\/li>\n<li>Install the laravel component required:\n<pre class=\"lang:default decode:true \">composer install<\/pre>\n<p>&nbsp;<\/li>\n<li>Import the database file (DB_SETUP.sql) along with the github.<br \/>\nNOTE: &#8216;quiz_details&#8217; table can&#8217;t be created because the field type &#8216;datetime CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP&#8217; for &#8216;updated_at&#8217; can&#8217;t be used. So replace &#8216;datetime&#8217; with &#8216;timestamp&#8217;<\/li>\n<li>Set the file\/folder permission for &#8216;storage&#8217;\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/quiz$ sudo chmod -R 777 storage\/<\/pre>\n<\/li>\n<li>Test it live (http:\/\/localhost:8000\/admin)\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/quiz$ php5.6 artisan serve<\/pre>\n<p>WORKING!!!<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1294\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front-1024x519.png\" alt=\"quiz-front\" width=\"840\" height=\"426\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front-1024x519.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front-300x152.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front-768x389.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front-1200x608.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-front.png 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>CAN&#8217;T SHOW http:\/\/localhost:8000\/admin BUT CAN SHOW http:\/\/localhost:8000\/admin\/quiz\/questions<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-admin-question.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1295\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-admin-question.jpg\" alt=\"quiz-admin-question\" width=\"811\" height=\"732\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-admin-question.jpg 811w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-admin-question-300x271.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-admin-question-768x693.jpg 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>NOTE: Check the routes in \/app\/Http\/routes.php. The routes are very limited! NO ROUTE FOR ADMIN???<\/li>\n<li>I found gulpfile.js in the root of the website, so I think I need to use npm and gulp to compile the saas:<br \/>\nUse &#8216;npm install&#8217; to install required modules<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/quiz$ npm install\r\nnpm WARN deprecated gulp-minify-css@0.3.13: Please use gulp-clean-css\r\nnpm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated lodash@1.0.2: lodash@&lt;2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0\r\nnpm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases &gt;= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.\r\nnpm WARN deprecated win-spawn@2.0.0: use [cross-spawn](https:\/\/github.com\/IndigoUnited\/node-cross-spawn) or [cross-spawn-async](https:\/\/github.com\/IndigoUnited\/node-cross-spawn-async) instead.\r\nnpm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue\r\nnpm WARN optional dep failed, continuing fsevents@1.0.15\r\n-\r\n&gt; node-sass@3.13.1 install \/home\/teddy\/Documents\/works\/laravel\/quiz\/node_modules\/laravel-elixir\/node_modules\/gulp-sass\/node_modules\/node-sass\r\n&gt; node scripts\/install.js\r\n\r\nDownloading binary from https:\/\/github.com\/sass\/node-sass\/releases\/download\/v3.13.1\/linux-x64-46_binding.node\r\nDownload complete\r\nBinary saved to \/home\/teddy\/Documents\/works\/laravel\/quiz\/node_modules\/laravel-elixir\/node_modules\/gulp-sass\/node_modules\/node-sass\/vendor\/linux-x64-46\/binding.node\r\nCaching binary to \/home\/teddy\/.npm\/node-sass\/3.13.1\/linux-x64-46_binding.node\r\n\r\n&gt; node-sass@3.13.1 postinstall \/home\/teddy\/Documents\/works\/laravel\/quiz\/node_modules\/laravel-elixir\/node_modules\/gulp-sass\/node_modules\/node-sass\r\n&gt; node scripts\/build.js\r\n\r\nBinary found at \/home\/teddy\/Documents\/works\/laravel\/quiz\/node_modules\/laravel-elixir\/node_modules\/gulp-sass\/node_modules\/node-sass\/vendor\/linux-x64-46\/binding.node\r\nTesting binary\r\nBinary is fine\r\nbootstrap-sass@3.3.7 node_modules\/bootstrap-sass\r\n\r\ngulp@3.9.1 node_modules\/gulp\r\n\u251c\u2500\u2500 interpret@1.0.1\r\n\u251c\u2500\u2500 pretty-hrtime@1.0.3\r\n\u251c\u2500\u2500 deprecated@0.0.1\r\n\u251c\u2500\u2500 archy@1.0.0\r\n\u251c\u2500\u2500 minimist@1.2.0\r\n\u251c\u2500\u2500 v8flags@2.0.11 (user-home@1.1.1)\r\n\u251c\u2500\u2500 semver@4.3.6\r\n\u251c\u2500\u2500 tildify@1.2.0 (os-homedir@1.0.2)\r\n\u251c\u2500\u2500 chalk@1.1.3 (supports-color@2.0.0, escape-string-regexp@1.0.5, ansi-styles@2.2.1, has-ansi@2.0.0, strip-ansi@3.0.1)\r\n\u251c\u2500\u2500 orchestrator@0.3.8 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)\r\n\u251c\u2500\u2500 gulp-util@3.0.8 (array-differ@1.0.0, lodash._reinterpolate@3.0.0, lodash._reescape@3.0.0, lodash._reevaluate@3.0.0, object-assign@3.0.0, array-uniq@1.0.3, beeper@1.1.1, dateformat@2.0.0, replace-ext@0.0.1, has-gulplog@0.1.0, fancy-log@1.3.0, vinyl@0.5.3, gulplog@1.0.0, lodash.template@3.6.2, through2@2.0.3, multipipe@0.1.2)\r\n\u251c\u2500\u2500 vinyl-fs@0.3.14 (strip-bom@1.0.0, vinyl@0.4.6, defaults@1.0.3, graceful-fs@3.0.11, mkdirp@0.5.1, through2@0.6.5, glob-stream@3.1.18, glob-watcher@0.0.6)\r\n\u2514\u2500\u2500 liftoff@2.3.0 (lodash.isstring@4.0.1, lodash.isplainobject@4.0.6, lodash.mapvalues@4.6.0, rechoir@0.6.2, extend@3.0.0, flagged-respawn@0.3.2, resolve@1.2.0, fined@1.0.2, findup-sync@0.4.3)\r\n\r\nlaravel-elixir@2.3.13 node_modules\/laravel-elixir\r\n\u251c\u2500\u2500 gulp-rename@1.2.2\r\n\u251c\u2500\u2500 underscore@1.8.3\r\n\u251c\u2500\u2500 install@0.1.8\r\n\u251c\u2500\u2500 require-dir@0.1.0\r\n\u251c\u2500\u2500 partialify@3.1.6 (string-to-js@0.0.1, through@2.3.8)\r\n\u251c\u2500\u2500 run-sequence@1.2.2 (chalk@1.1.3)\r\n\u251c\u2500\u2500 merge-stream@0.1.8 (through2@0.6.5)\r\n\u251c\u2500\u2500 gulp-rev@2.0.1 (object-assign@1.0.0, through2@0.6.5)\r\n\u251c\u2500\u2500 vinyl-paths@1.0.0 (through2@0.6.5)\r\n\u251c\u2500\u2500 vinyl-source-stream@1.1.0 (vinyl@0.4.6, through2@0.6.5)\r\n\u251c\u2500\u2500 gulp-filter@1.0.2 (through2@0.6.5, multimatch@0.3.0)\r\n\u251c\u2500\u2500 gulp-shell@0.2.11 (async@0.9.2, lodash@2.4.2, through2@0.6.5)\r\n\u251c\u2500\u2500 vinyl-buffer@1.0.0 (through2@0.6.5, bl@0.9.5)\r\n\u251c\u2500\u2500 parse-filepath@0.5.0 (path-ends-with@0.2.3)\r\n\u251c\u2500\u2500 gulp-concat@2.6.1 (concat-with-sourcemaps@1.0.4, vinyl@2.0.1, through2@2.0.3)\r\n\u251c\u2500\u2500 gulp-coffee@2.3.3 (merge@1.2.0, coffee-script@1.12.2, vinyl-sourcemaps-apply@0.2.1, through2@2.0.3)\r\n\u251c\u2500\u2500 gulp-util@3.0.8 (array-differ@1.0.0, lodash._reevaluate@3.0.0, lodash._reescape@3.0.0, lodash._reinterpolate@3.0.0, array-uniq@1.0.3, object-assign@3.0.0, beeper@1.1.1, dateformat@2.0.0, replace-ext@0.0.1, has-gulplog@0.1.0, fancy-log@1.3.0, minimist@1.2.0, vinyl@0.5.3, lodash.template@3.6.2, gulplog@1.0.0, chalk@1.1.3, through2@2.0.3, multipipe@0.1.2)\r\n\u251c\u2500\u2500 del@0.1.3 (is-path-cwd@1.0.0, each-async@1.1.1, is-path-in-cwd@1.0.0, globby@0.1.1, rimraf@2.5.4)\r\n\u251c\u2500\u2500 gulp-load-plugins@0.7.1 (multimatch@1.0.0, findup-sync@0.1.3)\r\n\u251c\u2500\u2500 gulp-if@1.2.5 (through2@0.6.5, gulp-match@0.2.1, ternary-stream@1.2.3)\r\n\u251c\u2500\u2500 gulp-sourcemaps@1.9.1 (detect-newline@2.1.0, graceful-fs@4.1.11, convert-source-map@1.3.0, strip-bom@2.0.0, source-map@0.5.6, vinyl@1.2.0, acorn@4.0.4, through2@2.0.3, debug-fabulous@0.0.4, css@2.2.1)\r\n\u251c\u2500\u2500 gulp-minify-css@0.3.13 (memory-cache@0.0.5, through2@0.6.5, bufferstreams@0.0.2, vinyl-sourcemaps-apply@0.1.4, clean-css@3.0.10)\r\n\u251c\u2500\u2500 gulp-ruby-sass@1.4.0 (slash@1.0.0, path-exists@1.0.0, object-assign@2.1.1, dargs@2.1.0, os-tmpdir@1.0.2, win-spawn@2.0.0, convert-source-map@1.3.0, each-async@1.1.1, md5-hex@1.3.0, mkdirp@0.5.1, glob@5.0.15, rimraf@2.5.4, vinyl-fs@1.0.0)\r\n\u251c\u2500\u2500 gulp-uglify@1.5.4 (uglify-save-license@0.4.1, deap@1.0.0, isobject@2.1.0, vinyl-sourcemaps-apply@0.2.1, fancy-log@1.3.0, through2@2.0.3, uglify-js@2.6.4)\r\n\u251c\u2500\u2500 gulp-phpunit@0.6.3 (map-stream@0.0.6, gulp-util@2.2.20)\r\n\u251c\u2500\u2500 gulp-phpspec@0.4.2 (map-stream@0.0.4, chalk@1.1.3, chai@2.3.0, gulp-todo@2.6.2, gulp-logger@0.0.2, gulp-util@2.2.20, expect@1.20.2)\r\n\u251c\u2500\u2500 gulp-notify@1.8.0 (node.extend@1.1.6, lodash.template@2.4.1, through2@1.1.1, gulp-util@2.2.20, node-notifier@3.4.1)\r\n\u251c\u2500\u2500 browserify@9.0.8 (string_decoder@0.10.31, inherits@2.0.3, isarray@0.0.1, https-browserify@0.0.1, path-browserify@0.0.0, tty-browserify@0.0.0, constants-browserify@0.0.1, builtins@0.0.7, process@0.10.1, defined@0.0.0, os-browserify@0.1.2, commondir@0.0.1, punycode@1.2.4, stream-browserify@1.0.0, duplexer2@0.0.2, xtend@3.0.0, deep-equal@1.0.1, assert@1.3.0, shell-quote@0.0.1, domain-browser@1.1.7, shallow-copy@0.0.1, querystring-es3@0.2.1, through2@1.1.1, concat-stream@1.4.10, events@1.0.2, has@1.0.1, parents@1.0.1, console-browserify@1.1.0, vm-browserify@0.0.4, readable-stream@1.1.14, timers-browserify@1.4.2, util@0.10.3, read-only-stream@1.1.1, subarg@1.0.0, url@0.10.3, http-browserify@1.7.0, glob@4.5.3, shasum@1.0.2, buffer@3.6.0, resolve@1.2.0, JSONStream@0.10.0, labeled-stream-splicer@1.0.2, browserify-zlib@0.1.4, syntax-error@1.1.6, browser-resolve@1.11.2, deps-sort@1.3.9, browser-pack@4.0.4, crypto-browserify@3.11.0, insert-module-globals@6.6.3, module-deps@3.9.1)\r\n\u251c\u2500\u2500 watchify@3.8.0 (defined@1.0.0, xtend@4.0.1, through2@2.0.3, outpipe@1.1.1, anymatch@1.3.0, chokidar@1.6.1, browserify@13.1.1)\r\n\u251c\u2500\u2500 gulp-autoprefixer@1.0.1 (object-assign@1.0.0, through2@0.6.5, vinyl-sourcemaps-apply@0.1.4, autoprefixer-core@3.1.2)\r\n\u251c\u2500\u2500 gulp-less@3.3.0 (object-assign@4.1.0, vinyl-sourcemaps-apply@0.2.1, through2@2.0.3, accord@0.26.4, less@2.7.1)\r\n\u251c\u2500\u2500 babelify@6.4.0 (object-assign@4.1.0, babel-core@5.8.38)\r\n\u251c\u2500\u2500 gulp-babel@5.3.0 (object-assign@4.1.0, replace-ext@0.0.1, vinyl-sourcemaps-apply@0.2.1, through2@2.0.3, babel-core@5.8.38)\r\n\u251c\u2500\u2500 npm@2.15.11\r\n\u2514\u2500\u2500 gulp-sass@2.3.2 (lodash.clonedeep@4.5.0, vinyl-sourcemaps-apply@0.2.1, through2@2.0.3, node-sass@3.13.1)<\/pre>\n<p>Use &#8216;gulp&#8217; to compile saas<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/works\/laravel\/quiz$ gulp\r\n[16:36:24] Using gulpfile ~\/Documents\/works\/laravel\/quiz\/gulpfile.js\r\n[16:36:24] Starting 'default'...\r\n[16:36:24] Starting 'sass'...\r\n[16:36:24] Running Sass: resources\/assets\/sass\/app.scss\r\n[16:36:25] Finished 'default' after 555 ms\r\n[16:36:26] gulp-notify: [Laravel Elixir] Sass Compiled!\r\n[16:36:26] Finished 'sass' after 2 s<\/pre>\n<p>I DONT KNOW HOW TO DO NEXT OR HOW THE NPM AND GULP AFFECT THE WEBSITE! NEED TO LEARN ABOUT THESE!!!<\/li>\n<li>On the homepage &#8216;http:\/\/localhost:8000&#8217;, I clicked &#8216;Start Quiz&#8217; button but I got NOT FOUND error (ajax error) at the chrome console. I found it is triggered by &#8216;onclick=&#8221;startQuiz()&#8221;&#8216; in \/resources\/views\/quiz\/view.blade.php and the javascript command in \/public\/js\/functions.js. I NEED TO MODIFY A FEW SETTING IN functions.js file! First replace the &#8216;base_dir&#8217; variable like below:\n<pre class=\"lang:default decode:true\">\/\/var base_dir='http:\/\/localhost\/quiz\/public\/ajax\/';\r\nvar base_dir='http:\/\/localhost\/works\/laravel\/quiz\/public\/ajax\/';<\/pre>\n<p>FROM NOW ON, I HAVE TO USE &#8216;http:\/\/localhost\/works\/laravel\/quiz\/public\/&#8217; INSTEAD OF &#8216;http:\/\/localhost:8000&#8217;! FOR HOMEPAGE AND &#8216;http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/quiz\/questions&#8217; FOR ADMIN PAGE!<br \/>\nNOW THE AJAX IS WORKING!! &#8216;Start Quiz&#8217; button IS WORKING!<br \/>\nAnother errors detected:<\/p>\n<pre class=\"lang:default decode:true \">localhost\/:19 GET http:\/\/localhost\/works\/laravel\/quiz\/public\/foundation-5.5.2\/js\/vendor\/modernizr.js \r\nlocalhost\/:22 GET http:\/\/localhost\/works\/laravel\/quiz\/public\/foundation-5.5.2\/js\/vendor\/fastclick.js \r\nlocalhost\/:22 GET http:\/\/localhost\/works\/laravel\/quiz\/public\/foundation-5.5.2\/js\/vendor\/fastclick.js 404 (Not Found)<\/pre>\n<p>Sometimes I got unknow error when trying to edit the question (http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/quiz\/question\/376).<br \/>\nSolution: I need to put &#8216;ini_set(&#8216;display_errors&#8217;,1);&#8217; in \/app\/Http\/routes.php to enable to debug the errors. It seems the &#8216;storage&#8217; directory HAS NOT BEEN SET THE PERMISSION. So make sure the step #5 is executed first!<\/li>\n<li>Improvements:<br \/>\nMany links in the admin page can&#8217;t be opened or don&#8217;t have the correct routes. Here I want to fix or develop the links.<br \/>\n<span style=\"background-color: #008000;\">Club Admin<\/span> (http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/club)<br \/>\nAdd a new route in \/app\/Http\/routes.php<\/p>\n<pre class=\"lang:default decode:true \">Route::get('admin\/club', 'ClubController@viewClubs');<\/pre>\n<p>Create a new controller &#8216;ClubController.php&#8217; in \/app\/Http\/Controllers\/<\/p>\n<pre class=\"lang:default decode:true \">namespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\nuse App\\models\\Club;\r\n\r\nclass ClubController extends Controller\r\n{\r\n    public function viewClubs(Request $request)\r\n    {\r\n        $data=array();\r\n        $data['title']='Clubs';\r\n        $data['clubs']=Club::get();\r\n        return view('club.view',$data);\r\n        \r\n    } \r\n}<\/pre>\n<p>The &#8216;Club&#8217; model is already exist in \/app\/models\/ directory! Here we want to show all the club in our database!<br \/>\nThe data would be showed up by \/resources\/views\/club\/view.blade.php like this:<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1341\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs-1024x405.png\" alt=\"quiz-view-clubs\" width=\"840\" height=\"332\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs-1024x405.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs-300x119.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs-768x303.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs-1200x474.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-view-clubs.png 1321w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><span style=\"background-color: #339966;\">Add\/Save New Club<\/span> (http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/club\/add)<br \/>\nAdd two new routes in \/app\/Http\/routes.php<\/p>\n<pre class=\"lang:default decode:true\">Route::get('admin\/club\/add', 'ClubController@addClub');\r\nRoute::post('admin\/club\/add', 'ClubController@saveAddClub');<\/pre>\n<p>Modify a controller &#8216;ClubController.php&#8217; in \/app\/Http\/Controllers\/<\/p>\n<pre class=\"lang:default decode:true\">...\r\nuse App\\models\\Club;\r\nuse App\\models\\MartialArt;\r\nuse Validator;\r\n\r\nclass ClubController extends Controller\r\n{\r\n    public function viewClubs(Request $request)\r\n    {\r\n        ...        \r\n    }  \r\n    public function addClub()\r\n    {\r\n        $data=array();\r\n        $data['title']='Add Club';\r\n        $data['martial_art']=MartialArt::get();\r\n        return view('club.add',$data);\r\n    }\r\n    public function saveAddClub(Request $request)\r\n    {\r\n        $request-&gt;flash();\r\n        $validator = Validator::make($request-&gt;all(), [\r\n            'club_name' =&gt; 'required',\r\n            'club_short_name' =&gt; 'required',\r\n            'club_email' =&gt; 'required',\r\n            'martial_art_id' =&gt; 'required'\r\n        ]);\r\n        if ($validator-&gt;fails()) {\r\n             return redirect('admin\/club\/add')-&gt;withErrors($validator);\r\n        }\r\n        else\r\n        {\r\n            $club=new Club($request-&gt;all());\r\n            $club-&gt;write();\r\n            return redirect('admin\/club')-&gt;with('status', 'Club successfully added');\r\n        }\r\n    }\r\n}<\/pre>\n<p>Add\/modify a model &#8216;Club.php&#8217; in \/app\/models\/ directory:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\nnamespace App\\models;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\r\nuse App\\models\\ClubMeta;\r\n\r\nclass Club extends Model\r\n{\r\n    use SoftDeletes;\r\n    protected $table = 'club';\r\n    protected $primaryKey ='club_id';\r\n    \/**\r\n     * The attributes that are mass assignable.\r\n     *\r\n     * @var array\r\n     *\/\r\n    protected $fillable = ['club_name','club_short_name','club_email','club_phone','club_location','club_map_url','martial_art_id'];\r\n\r\n    \/**\r\n     * The attributes excluded from the model's JSON form.\r\n     *\r\n     * @var array\r\n     *\/\r\n    protected $dates= ['deleted_at'];\r\n    public function write()\r\n    {\r\n        $this-&gt;save();\r\n    }\r\n}<\/pre>\n<p>Add new model &#8216;MartialArt.php&#8217; in \/app\/models\/ directory:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n\r\nnamespace App\\models;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\r\n\r\n\r\nclass MartialArt extends Model\r\n{\r\n    use SoftDeletes;\r\n    protected $table = 'martial_art';\r\n    protected $primaryKey ='martial_art_id';\r\n    \/**\r\n     * The attributes that are mass assignable.\r\n     *\r\n     * @var array\r\n     *\/\r\n    protected $fillable = ['martial_art_name'];\r\n\r\n    \/**\r\n     * The attributes excluded from the model's JSON form.\r\n     *\r\n     * @var array\r\n     *\/\r\n    protected $dates= ['deleted_at'];\r\n    public function write()\r\n    {\r\n        $this-&gt;save();\r\n    }\r\n}<\/pre>\n<p>Add a new blade template &#8216;add.blade.php&#8217; in \/resources\/views\/club\/ directory<\/p>\n<pre class=\"lang:default decode:true\">@extends('layouts.master')\r\n@section('title')\r\n@endsection\r\n@section('content')\r\n&lt;div class=\"row\"&gt;\r\n    &lt;div class=\"large-8 large-offset-2 columns\"&gt;\r\n        &lt;div class=\"add-panel panel panel-default\"&gt;\r\n            &lt;div class=\"panel-heading\"&gt;\r\n                &lt;h3 class=\"panel-title\"&gt;{{$title}}&lt;\/h3&gt;\r\n            &lt;\/div&gt;\r\n            &lt;br \/&gt;\r\n            @if (count($errors) &gt; 0)\r\n                &lt;div class=\"alert alert-danger\"&gt;\r\n                    &lt;ul&gt;\r\n                        @foreach ($errors-&gt;all() as $error)\r\n                            &lt;li&gt;{{ $error }}&lt;\/li&gt;\r\n                        @endforeach\r\n                    &lt;\/ul&gt;\r\n                &lt;\/div&gt;\r\n            @endif\r\n            &lt;form class=\"form-horizontal\" role=\"form\" method=\"POST\" enctype=\"multipart\/form-data\" data-abide&gt;\r\n                &lt;input type=\"hidden\" name=\"_token\" value=\"{{ csrf_token() }}\"&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Name &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_name\" value=\"{{ old('club_name') }}\" required&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Club Name is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Short Name &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_short_name\" value=\"{{ old('club_short_name') }}\" required&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Club Short Name is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Email &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;input type=\"email\" class=\"form-control\" name=\"club_email\" value=\"{{ old('club_email') }}\" required pattern=\"email\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Valid Email address is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Phone\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_phone\" value=\"{{ old('club_phone') }}\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Location\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_location\" value=\"{{ old('club_location') }}\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Map Url\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_map_url\" value=\"{{ old('club_map_url') }}\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Martial Art &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;select class=\"form-control\" name=\"martial_art_id\" required&gt;\r\n                            &lt;option value=\"\"&gt;Select Martial Art&lt;\/option&gt;\r\n                            @foreach($martial_art as $m)\r\n                                &lt;option value=\"{{$m-&gt;martial_art_id}}\" {{old('martial_art_id')==$m-&gt;martial_art_id?'selected=\"selected\"':''}}&gt;{{$m-&gt;martial_art_name}}&lt;\/option&gt;\r\n                            @endforeach\r\n                        &lt;\/select&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Martial Art is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                \r\n                &lt;button type=\"submit\"&gt;\r\n                    Add Club\r\n                &lt;\/button&gt;\r\n            &lt;\/form&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n@endsection<\/pre>\n<p>OK. then make a test at http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/club\/add.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-add-club.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1345\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-add-club.png\" alt=\"quiz-add-club\" width=\"728\" height=\"668\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-add-club.png 728w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-add-club-300x275.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>I got this club sample from <a href=\"http:\/\/www.kumgang.co.nz\/\" target=\"_blank\">Kumgang Tae Kwon Do<\/a> website. Then save the data by clicking &#8216;Add Club&#8217;. Here is the working result:<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-saved.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1346\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-saved-1024x402.png\" alt=\"quiz-club-saved\" width=\"840\" height=\"330\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-saved-1024x402.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-saved-300x118.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-saved-768x301.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-saved.png 1025w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><span style=\"background-color: #008000;\">Edit\/Save Club<\/span> (http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/club\/edit\/4)<br \/>\nFirst I need to put &#8216;Edit&#8217; link on the club admin page (http:\/\/localhost\/works\/laravel\/quiz\/public\/admin\/club). Modify &#8216;view.blade.php&#8217; in \/resources\/views\/club\/ directory. Modify the header table to show\/hide the needed field (add class &#8216;all&#8217; to show and &#8216;none&#8217; to hide)<\/p>\n<pre class=\"lang:default decode:true \">...\r\n&lt;table id=\"clubTable\" class=\"display responsive nowrap\" cellspacing=\"0\" width=\"100%\"&gt;\r\n    &lt;thead&gt;\r\n        &lt;tr&gt;\r\n            &lt;th class=\"all\"&gt;Name&lt;\/th&gt;\r\n            &lt;th class=\"all\"&gt;Short Name&lt;\/th&gt;\r\n            &lt;th class=\"all\"&gt;Email&lt;\/th&gt;\r\n            &lt;th class=\"all\"&gt;Phone&lt;\/th&gt;\r\n            &lt;th class=\"none\"&gt;Location&lt;\/th&gt;\r\n            &lt;th class=\"all\"&gt;&lt;\/th&gt;\r\n        &lt;\/tr&gt;\r\n    &lt;\/thead&gt;\r\n...<\/pre>\n<p>Then arrange the field width by defining the columns (&#8216;columnDefs&#8217;) like this:<\/p>\n<pre class=\"lang:default decode:true \">$(document).ready(function() {\r\n    $('#clubTable').dataTable({\r\n        responsive: true,\r\n        \"dom\": 'f&lt;t&gt;p',\r\n        \"columnDefs\": [\r\n            { \"width\": \"10%\", \"targets\": 1 },\r\n            { \"width\": \"10%\", \"targets\": 2 },\r\n            { \"width\": \"10%\", \"targets\": 3 },\r\n            { \"width\": \"10%\", \"targets\": 5 }\r\n          ]\r\n    });\r\n});<\/pre>\n<p>So here is the new looks<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-view-edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1348\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-view-edit-1024x545.png\" alt=\"quiz-club-view-edit\" width=\"840\" height=\"447\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-view-edit-1024x545.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-view-edit-300x160.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-view-edit-768x409.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2016\/12\/quiz-club-view-edit.png 1028w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>To make the &#8216;Edit&#8217; links work, add two new routes in \/app\/Http\/routes.php<\/p>\n<pre class=\"lang:default decode:true \">Route::get('admin\/club\/edit\/{club_id}', 'ClubController@editClub');\r\nRoute::post('admin\/club\/edit\/{club_id}', 'ClubController@saveEditClub');<\/pre>\n<p>Then Modify &#8216;ClubController.php&#8217; in \/app\/Http\/Controllers\/ dir:<\/p>\n<pre class=\"lang:default decode:true \">&lt;?php\r\n...\r\nclass ClubController extends Controller\r\n{\r\n    public function viewClubs(Request $request)\r\n    {\r\n        ...\r\n    }  \r\n    public function addClub()\r\n    {\r\n        ...\r\n    }\r\n    public function saveAddClub(Request $request)\r\n    {\r\n        ...\r\n    }\r\n    public function editClub(Request $request)\r\n    {\r\n        $data=array();\r\n        $data['title']='Edit Club';\r\n        $data['martial_art']=MartialArt::get();\r\n        $data['club']=Club::find($request-&gt;club_id);\r\n        return view('club.edit',$data);\r\n    }\r\n    public function saveEditClub(Request $request)\r\n    {\r\n        $request-&gt;flash();\r\n        $validator = Validator::make($request-&gt;all(), [\r\n            'club_name' =&gt; 'required',\r\n            'club_short_name' =&gt; 'required',\r\n            'club_email' =&gt; 'required',\r\n            'martial_art_id' =&gt; 'required'\r\n        ]);\r\n\r\n        if ($validator-&gt;fails()) {\r\n             return redirect('admin\/club\/edit\/'.$request-&gt;club_id)-&gt;withErrors($validator);\r\n        }\r\n        else\r\n        {\r\n            $club=Club::find($request-&gt;club_id);\r\n            $club-&gt;club_name=$request-&gt;club_name;\r\n            $club-&gt;club_short_name=$request-&gt;club_short_name;\r\n            $club-&gt;club_email=$request-&gt;club_email;\r\n            $club-&gt;club_phone=$request-&gt;club_phone;\r\n            $club-&gt;club_location=$request-&gt;club_location;\r\n            $club-&gt;club_map_url=$request-&gt;club_map_url;\r\n            $club-&gt;martial_art_id=$request-&gt;martial_art_id;\r\n            $club-&gt;write();\r\n            return redirect('admin\/club')-&gt;with('status', 'Club successfully updated');\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>Add\/Modify &#8216;edit.blade.php&#8217; in \/resources\/views\/club\/ directory:<\/p>\n<pre class=\"lang:default decode:true \">@extends('layouts.master')\r\n@section('title')\r\n@endsection\r\n@section('content')\r\n&lt;div class=\"row\"&gt;\r\n    &lt;div class=\"large-8 large-offset-2 columns\"&gt;\r\n        &lt;div class=\"add-panel panel panel-default\"&gt;\r\n            &lt;div class=\"panel-heading\"&gt;\r\n                &lt;h3 class=\"panel-title\"&gt;{{$title}}&lt;\/h3&gt;\r\n            &lt;\/div&gt;\r\n            &lt;br \/&gt;\r\n            @if (count($errors) &gt; 0)\r\n                &lt;div class=\"alert alert-danger\"&gt;\r\n                    &lt;ul&gt;\r\n                        @foreach ($errors-&gt;all() as $error)\r\n                            &lt;li&gt;{{ $error }}&lt;\/li&gt;\r\n                        @endforeach\r\n                    &lt;\/ul&gt;\r\n                &lt;\/div&gt;\r\n            @endif\r\n            &lt;form class=\"form-horizontal\" role=\"form\" method=\"POST\" enctype=\"multipart\/form-data\" data-abide&gt;\r\n                &lt;input type=\"hidden\" name=\"_token\" value=\"{{ csrf_token() }}\"&gt;\r\n                &lt;input type=\"hidden\" name=\"club_id\" value=\"{{ $club-&gt;club_id }}\"&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Name &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_name\" value=\"{{ $club-&gt;club_name }}\" required&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Club Name is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Short Name &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_short_name\" value=\"{{ $club-&gt;club_short_name }}\" required&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Club Short Name is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Email &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;input type=\"email\" class=\"form-control\" name=\"club_email\" value=\"{{ $club-&gt;club_email }}\" required pattern=\"email\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Valid Email address is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Phone\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_phone\" value=\"{{ $club-&gt;club_phone }}\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Location\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_location\" value=\"{{ $club-&gt;club_location }}\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Club Map Url\r\n                        &lt;input type=\"text\" class=\"form-control\" name=\"club_map_url\" value=\"{{ $club-&gt;club_map_url }}\"&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"name-field\"&gt;\r\n                    &lt;label&gt;Martial Art &lt;small&gt;required&lt;\/small&gt;\r\n                        &lt;select class=\"form-control\" name=\"martial_art_id\" required&gt;\r\n                            &lt;option value=\"\"&gt;Select Martial Art&lt;\/option&gt;\r\n                            @foreach($martial_art as $m)\r\n                                &lt;option value=\"{{$m-&gt;martial_art_id}}\" {{$club-&gt;martial_art_id==$m-&gt;martial_art_id?'selected=\"selected\"':''}}&gt;{{$m-&gt;martial_art_name}}&lt;\/option&gt;\r\n                            @endforeach\r\n                        &lt;\/select&gt;\r\n                    &lt;\/label&gt;\r\n                    &lt;small class=\"error\"&gt;Martial Art is required.&lt;\/small&gt;\r\n                &lt;\/div&gt;\r\n                \r\n                &lt;button type=\"submit\"&gt;\r\n                    Update Club\r\n                &lt;\/button&gt;\r\n            &lt;\/form&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n@endsection<\/pre>\n<p>OK. Now the Club admin can be used properly.<br \/>\nNOTES: When I save the new club or the edited club, I don&#8217;t find the flash status to show the data is saved\/updated successfully!<br \/>\nHOW TO DELETE CLUB???<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>source: https:\/\/github.com\/sms516\/quiz online: http:\/\/dojang.nz\/ Installation: Create a new laravel project: composer create-project &#8211;prefer-dist laravel\/laravel quiz &nbsp; Download the app from https:\/\/github.com\/sms516\/quiz. It&#8217;s better to donwload in zip file then extract the content in \/works\/laravel\/quiz\/ directory. Overwrite the existing files and directories. Install the laravel component required: composer install &nbsp; Import the database file (DB_SETUP.sql) along &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2016\/12\/29\/quiz\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Quiz&#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-1289","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\/1289","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=1289"}],"version-history":[{"count":15,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1289\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1289\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}