Laravel default resource for articles

GET|HEAD | articles | articles.index | App\Http\Controllers\ArticlesController@index | web | POST | articles | articles.store | App\Http\Controllers\ArticlesController@store | web | GET|HEAD | articles/create | articles.create | App\Http\Controllers\ArticlesController@create | web | PUT|PATCH | articles/{article} | articles.update | App\Http\Controllers\ArticlesController@update | web | GET|HEAD | articles/{article} | articles.show | App\Http\Controllers\ArticlesController@show | web | DELETE | articles/{article} | articles.destroy…

Creating a minimal Node.js module

I strongly believe in the minimalistic approach when creating examples. Here is one minimal module: module.exports = function() { return “Hello World”; }; Here is the main.js: var hello = require(“./hello.js”); var moduleExportsFunction = hello(); console.log(moduleExportsFunction); If you call node main.js, the output will be: Hello World So what you get after the require is…

Tagged