diff --git a/mix-manifest.json b/mix-manifest.json index 3db0bd8..2f8f094 100644 --- a/mix-manifest.json +++ b/mix-manifest.json @@ -1,6 +1,4 @@ { "/src/public/js/app.js": "/src/public/js/app.js", - "/src/public/css/app.css": "/src/public/css/app.css", - "/Users/anders/Code/skeleton/public/vendor/pipe-dream/laravel/css/app.css": "/Users/anders/Code/skeleton/public/vendor/pipe-dream/laravel/css/app.css", - "/Users/anders/Code/skeleton/public/vendor/pipe-dream/laravel/js/app.js": "/Users/anders/Code/skeleton/public/vendor/pipe-dream/laravel/js/app.js" + "/src/public/css/app.css": "/src/public/css/app.css" } diff --git a/src/public/css/app.css b/src/public/css/app.css index a917e08..1cb8f20 100644 --- a/src/public/css/app.css +++ b/src/public/css/app.css @@ -2793,27 +2793,37 @@ table { } .flex { + display: -webkit-box; display: flex; } .inline-flex { + display: -webkit-inline-box; display: inline-flex; } .flex-row { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .flex-row-reverse { - flex-direction: row-reverse; + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + flex-direction: row-reverse; } .flex-col { - flex-direction: column; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; } .flex-col-reverse { - flex-direction: column-reverse; + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + flex-direction: column-reverse; } .flex-wrap { @@ -2829,23 +2839,28 @@ table { } .items-start { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .items-end { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .items-center { - align-items: center; + -webkit-box-align: center; + align-items: center; } .items-baseline { - align-items: baseline; + -webkit-box-align: baseline; + align-items: baseline; } .items-stretch { - align-items: stretch; + -webkit-box-align: stretch; + align-items: stretch; } .self-auto { @@ -2869,19 +2884,23 @@ table { } .justify-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .justify-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .justify-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .justify-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .justify-around { @@ -2909,23 +2928,28 @@ table { } .flex-1 { - flex: 1 1 0%; + -webkit-box-flex: 1; + flex: 1 1 0%; } .flex-auto { - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; } .flex-initial { - flex: 0 1 auto; + -webkit-box-flex: 0; + flex: 0 1 auto; } .flex-none { - flex: none; + -webkit-box-flex: 0; + flex: none; } .flex-grow { - flex-grow: 1; + -webkit-box-flex: 1; + flex-grow: 1; } .flex-shrink { @@ -2933,7 +2957,8 @@ table { } .flex-no-grow { - flex-grow: 0; + -webkit-box-flex: 0; + flex-grow: 0; } .flex-no-shrink { @@ -6223,8 +6248,11 @@ table { .sl-vue-tree-node-item { position: relative; + display: -webkit-box; display: flex; - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; padding-left: 10px; padding-right: 10px; line-height: 28px; @@ -8474,27 +8502,37 @@ table { } .sm\:flex { + display: -webkit-box; display: flex; } .sm\:inline-flex { + display: -webkit-inline-box; display: inline-flex; } .sm\:flex-row { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .sm\:flex-row-reverse { - flex-direction: row-reverse; + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + flex-direction: row-reverse; } .sm\:flex-col { - flex-direction: column; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; } .sm\:flex-col-reverse { - flex-direction: column-reverse; + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + flex-direction: column-reverse; } .sm\:flex-wrap { @@ -8510,23 +8548,28 @@ table { } .sm\:items-start { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .sm\:items-end { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .sm\:items-center { - align-items: center; + -webkit-box-align: center; + align-items: center; } .sm\:items-baseline { - align-items: baseline; + -webkit-box-align: baseline; + align-items: baseline; } .sm\:items-stretch { - align-items: stretch; + -webkit-box-align: stretch; + align-items: stretch; } .sm\:self-auto { @@ -8550,19 +8593,23 @@ table { } .sm\:justify-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .sm\:justify-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .sm\:justify-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .sm\:justify-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .sm\:justify-around { @@ -8590,23 +8637,28 @@ table { } .sm\:flex-1 { - flex: 1 1 0%; + -webkit-box-flex: 1; + flex: 1 1 0%; } .sm\:flex-auto { - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; } .sm\:flex-initial { - flex: 0 1 auto; + -webkit-box-flex: 0; + flex: 0 1 auto; } .sm\:flex-none { - flex: none; + -webkit-box-flex: 0; + flex: none; } .sm\:flex-grow { - flex-grow: 1; + -webkit-box-flex: 1; + flex-grow: 1; } .sm\:flex-shrink { @@ -8614,7 +8666,8 @@ table { } .sm\:flex-no-grow { - flex-grow: 0; + -webkit-box-flex: 0; + flex-grow: 0; } .sm\:flex-no-shrink { @@ -14048,27 +14101,37 @@ table { } .md\:flex { + display: -webkit-box; display: flex; } .md\:inline-flex { + display: -webkit-inline-box; display: inline-flex; } .md\:flex-row { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .md\:flex-row-reverse { - flex-direction: row-reverse; + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + flex-direction: row-reverse; } .md\:flex-col { - flex-direction: column; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; } .md\:flex-col-reverse { - flex-direction: column-reverse; + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + flex-direction: column-reverse; } .md\:flex-wrap { @@ -14084,23 +14147,28 @@ table { } .md\:items-start { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .md\:items-end { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .md\:items-center { - align-items: center; + -webkit-box-align: center; + align-items: center; } .md\:items-baseline { - align-items: baseline; + -webkit-box-align: baseline; + align-items: baseline; } .md\:items-stretch { - align-items: stretch; + -webkit-box-align: stretch; + align-items: stretch; } .md\:self-auto { @@ -14124,19 +14192,23 @@ table { } .md\:justify-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .md\:justify-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .md\:justify-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .md\:justify-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .md\:justify-around { @@ -14164,23 +14236,28 @@ table { } .md\:flex-1 { - flex: 1 1 0%; + -webkit-box-flex: 1; + flex: 1 1 0%; } .md\:flex-auto { - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; } .md\:flex-initial { - flex: 0 1 auto; + -webkit-box-flex: 0; + flex: 0 1 auto; } .md\:flex-none { - flex: none; + -webkit-box-flex: 0; + flex: none; } .md\:flex-grow { - flex-grow: 1; + -webkit-box-flex: 1; + flex-grow: 1; } .md\:flex-shrink { @@ -14188,7 +14265,8 @@ table { } .md\:flex-no-grow { - flex-grow: 0; + -webkit-box-flex: 0; + flex-grow: 0; } .md\:flex-no-shrink { @@ -19622,27 +19700,37 @@ table { } .lg\:flex { + display: -webkit-box; display: flex; } .lg\:inline-flex { + display: -webkit-inline-box; display: inline-flex; } .lg\:flex-row { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .lg\:flex-row-reverse { - flex-direction: row-reverse; + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + flex-direction: row-reverse; } .lg\:flex-col { - flex-direction: column; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; } .lg\:flex-col-reverse { - flex-direction: column-reverse; + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + flex-direction: column-reverse; } .lg\:flex-wrap { @@ -19658,23 +19746,28 @@ table { } .lg\:items-start { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .lg\:items-end { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .lg\:items-center { - align-items: center; + -webkit-box-align: center; + align-items: center; } .lg\:items-baseline { - align-items: baseline; + -webkit-box-align: baseline; + align-items: baseline; } .lg\:items-stretch { - align-items: stretch; + -webkit-box-align: stretch; + align-items: stretch; } .lg\:self-auto { @@ -19698,19 +19791,23 @@ table { } .lg\:justify-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .lg\:justify-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .lg\:justify-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .lg\:justify-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .lg\:justify-around { @@ -19738,23 +19835,28 @@ table { } .lg\:flex-1 { - flex: 1 1 0%; + -webkit-box-flex: 1; + flex: 1 1 0%; } .lg\:flex-auto { - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; } .lg\:flex-initial { - flex: 0 1 auto; + -webkit-box-flex: 0; + flex: 0 1 auto; } .lg\:flex-none { - flex: none; + -webkit-box-flex: 0; + flex: none; } .lg\:flex-grow { - flex-grow: 1; + -webkit-box-flex: 1; + flex-grow: 1; } .lg\:flex-shrink { @@ -19762,7 +19864,8 @@ table { } .lg\:flex-no-grow { - flex-grow: 0; + -webkit-box-flex: 0; + flex-grow: 0; } .lg\:flex-no-shrink { @@ -25196,27 +25299,37 @@ table { } .xl\:flex { + display: -webkit-box; display: flex; } .xl\:inline-flex { + display: -webkit-inline-box; display: inline-flex; } .xl\:flex-row { - flex-direction: row; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + flex-direction: row; } .xl\:flex-row-reverse { - flex-direction: row-reverse; + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + flex-direction: row-reverse; } .xl\:flex-col { - flex-direction: column; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + flex-direction: column; } .xl\:flex-col-reverse { - flex-direction: column-reverse; + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + flex-direction: column-reverse; } .xl\:flex-wrap { @@ -25232,23 +25345,28 @@ table { } .xl\:items-start { - align-items: flex-start; + -webkit-box-align: start; + align-items: flex-start; } .xl\:items-end { - align-items: flex-end; + -webkit-box-align: end; + align-items: flex-end; } .xl\:items-center { - align-items: center; + -webkit-box-align: center; + align-items: center; } .xl\:items-baseline { - align-items: baseline; + -webkit-box-align: baseline; + align-items: baseline; } .xl\:items-stretch { - align-items: stretch; + -webkit-box-align: stretch; + align-items: stretch; } .xl\:self-auto { @@ -25272,19 +25390,23 @@ table { } .xl\:justify-start { - justify-content: flex-start; + -webkit-box-pack: start; + justify-content: flex-start; } .xl\:justify-end { - justify-content: flex-end; + -webkit-box-pack: end; + justify-content: flex-end; } .xl\:justify-center { - justify-content: center; + -webkit-box-pack: center; + justify-content: center; } .xl\:justify-between { - justify-content: space-between; + -webkit-box-pack: justify; + justify-content: space-between; } .xl\:justify-around { @@ -25312,23 +25434,28 @@ table { } .xl\:flex-1 { - flex: 1 1 0%; + -webkit-box-flex: 1; + flex: 1 1 0%; } .xl\:flex-auto { - flex: 1 1 auto; + -webkit-box-flex: 1; + flex: 1 1 auto; } .xl\:flex-initial { - flex: 0 1 auto; + -webkit-box-flex: 0; + flex: 0 1 auto; } .xl\:flex-none { - flex: none; + -webkit-box-flex: 0; + flex: none; } .xl\:flex-grow { - flex-grow: 1; + -webkit-box-flex: 1; + flex-grow: 1; } .xl\:flex-shrink { @@ -25336,7 +25463,8 @@ table { } .xl\:flex-no-grow { - flex-grow: 0; + -webkit-box-flex: 0; + flex-grow: 0; } .xl\:flex-no-shrink { diff --git a/src/public/js/app.js b/src/public/js/app.js index 0dad059..2640a89 100644 --- a/src/public/js/app.js +++ b/src/public/js/app.js @@ -86,46 +86,34 @@ /************************************************************************/ /******/ ({ -/***/ "./node_modules/@babel/runtime/regenerator/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@babel/runtime/regenerator/index.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js"); - - -/***/ }), - -/***/ "./node_modules/axios/index.js": -/*!*************************************!*\ - !*** ./node_modules/axios/index.js ***! - \*************************************/ +/***/ "../../node_modules/axios/index.js": +/*!**************************************************!*\ + !*** /Users/nicolas/node_modules/axios/index.js ***! + \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); +module.exports = __webpack_require__(/*! ./lib/axios */ "../../node_modules/axios/lib/axios.js"); /***/ }), -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ +/***/ "../../node_modules/axios/lib/adapters/xhr.js": +/*!*************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/adapters/xhr.js ***! + \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); -var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); -var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); -var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); -var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(/*! ./../helpers/btoa */ "./node_modules/axios/lib/helpers/btoa.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); +var settle = __webpack_require__(/*! ./../core/settle */ "../../node_modules/axios/lib/core/settle.js"); +var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "../../node_modules/axios/lib/helpers/buildURL.js"); +var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "../../node_modules/axios/lib/helpers/parseHeaders.js"); +var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "../../node_modules/axios/lib/helpers/isURLSameOrigin.js"); +var createError = __webpack_require__(/*! ../core/createError */ "../../node_modules/axios/lib/core/createError.js"); +var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(/*! ./../helpers/btoa */ "../../node_modules/axios/lib/helpers/btoa.js"); module.exports = function xhrAdapter(config) { return new Promise(function dispatchXhrRequest(resolve, reject) { @@ -222,7 +210,7 @@ module.exports = function xhrAdapter(config) { // This is only done if running in a standard browser environment. // Specifically not if we're in a web worker, or react-native. if (utils.isStandardBrowserEnv()) { - var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); + var cookies = __webpack_require__(/*! ./../helpers/cookies */ "../../node_modules/axios/lib/helpers/cookies.js"); // Add xsrf header var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? @@ -301,20 +289,20 @@ module.exports = function xhrAdapter(config) { /***/ }), -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ +/***/ "../../node_modules/axios/lib/axios.js": +/*!******************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/axios.js ***! + \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); -var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); +var utils = __webpack_require__(/*! ./utils */ "../../node_modules/axios/lib/utils.js"); +var bind = __webpack_require__(/*! ./helpers/bind */ "../../node_modules/axios/lib/helpers/bind.js"); +var Axios = __webpack_require__(/*! ./core/Axios */ "../../node_modules/axios/lib/core/Axios.js"); +var defaults = __webpack_require__(/*! ./defaults */ "../../node_modules/axios/lib/defaults.js"); /** * Create an instance of Axios @@ -347,15 +335,15 @@ axios.create = function create(instanceConfig) { }; // Expose Cancel & CancelToken -axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); -axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); -axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); +axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "../../node_modules/axios/lib/cancel/Cancel.js"); +axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "../../node_modules/axios/lib/cancel/CancelToken.js"); +axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "../../node_modules/axios/lib/cancel/isCancel.js"); // Expose all/spread axios.all = function all(promises) { return Promise.all(promises); }; -axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); +axios.spread = __webpack_require__(/*! ./helpers/spread */ "../../node_modules/axios/lib/helpers/spread.js"); module.exports = axios; @@ -365,10 +353,10 @@ module.exports.default = axios; /***/ }), -/***/ "./node_modules/axios/lib/cancel/Cancel.js": -/*!*************************************************!*\ - !*** ./node_modules/axios/lib/cancel/Cancel.js ***! - \*************************************************/ +/***/ "../../node_modules/axios/lib/cancel/Cancel.js": +/*!**************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/cancel/Cancel.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -396,17 +384,17 @@ module.exports = Cancel; /***/ }), -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ +/***/ "../../node_modules/axios/lib/cancel/CancelToken.js": +/*!*******************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/cancel/CancelToken.js ***! + \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); +var Cancel = __webpack_require__(/*! ./Cancel */ "../../node_modules/axios/lib/cancel/Cancel.js"); /** * A `CancelToken` is an object that can be used to request cancellation of an operation. @@ -465,10 +453,10 @@ module.exports = CancelToken; /***/ }), -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ +/***/ "../../node_modules/axios/lib/cancel/isCancel.js": +/*!****************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/cancel/isCancel.js ***! + \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -482,20 +470,20 @@ module.exports = function isCancel(value) { /***/ }), -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ +/***/ "../../node_modules/axios/lib/core/Axios.js": +/*!***********************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/Axios.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js"); -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); -var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); +var defaults = __webpack_require__(/*! ./../defaults */ "../../node_modules/axios/lib/defaults.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); +var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "../../node_modules/axios/lib/core/InterceptorManager.js"); +var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "../../node_modules/axios/lib/core/dispatchRequest.js"); /** * Create a new instance of Axios @@ -573,17 +561,17 @@ module.exports = Axios; /***/ }), -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ +/***/ "../../node_modules/axios/lib/core/InterceptorManager.js": +/*!************************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/InterceptorManager.js ***! + \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); function InterceptorManager() { this.handlers = []; @@ -637,17 +625,17 @@ module.exports = InterceptorManager; /***/ }), -/***/ "./node_modules/axios/lib/core/createError.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/createError.js ***! - \****************************************************/ +/***/ "../../node_modules/axios/lib/core/createError.js": +/*!*****************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/createError.js ***! + \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); +var enhanceError = __webpack_require__(/*! ./enhanceError */ "../../node_modules/axios/lib/core/enhanceError.js"); /** * Create an Error with the specified message, config, error code, request and response. @@ -667,22 +655,22 @@ module.exports = function createError(message, config, code, request, response) /***/ }), -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ +/***/ "../../node_modules/axios/lib/core/dispatchRequest.js": +/*!*********************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/dispatchRequest.js ***! + \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); -var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); -var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); -var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); -var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); +var transformData = __webpack_require__(/*! ./transformData */ "../../node_modules/axios/lib/core/transformData.js"); +var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "../../node_modules/axios/lib/cancel/isCancel.js"); +var defaults = __webpack_require__(/*! ../defaults */ "../../node_modules/axios/lib/defaults.js"); +var isAbsoluteURL = __webpack_require__(/*! ./../helpers/isAbsoluteURL */ "../../node_modules/axios/lib/helpers/isAbsoluteURL.js"); +var combineURLs = __webpack_require__(/*! ./../helpers/combineURLs */ "../../node_modules/axios/lib/helpers/combineURLs.js"); /** * Throws a `Cancel` if cancellation has been requested. @@ -765,10 +753,10 @@ module.exports = function dispatchRequest(config) { /***/ }), -/***/ "./node_modules/axios/lib/core/enhanceError.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/enhanceError.js ***! - \*****************************************************/ +/***/ "../../node_modules/axios/lib/core/enhanceError.js": +/*!******************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/enhanceError.js ***! + \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -798,17 +786,17 @@ module.exports = function enhanceError(error, config, code, request, response) { /***/ }), -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ +/***/ "../../node_modules/axios/lib/core/settle.js": +/*!************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/settle.js ***! + \************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); +var createError = __webpack_require__(/*! ./createError */ "../../node_modules/axios/lib/core/createError.js"); /** * Resolve or reject a Promise based on response status. @@ -836,17 +824,17 @@ module.exports = function settle(resolve, reject, response) { /***/ }), -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ +/***/ "../../node_modules/axios/lib/core/transformData.js": +/*!*******************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/core/transformData.js ***! + \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); /** * Transform the data for a request or a response @@ -868,18 +856,18 @@ module.exports = function transformData(data, headers, fns) { /***/ }), -/***/ "./node_modules/axios/lib/defaults.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/defaults.js ***! - \********************************************/ +/***/ "../../node_modules/axios/lib/defaults.js": +/*!*********************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/defaults.js ***! + \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) { -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); +var utils = __webpack_require__(/*! ./utils */ "../../node_modules/axios/lib/utils.js"); +var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "../../node_modules/axios/lib/helpers/normalizeHeaderName.js"); var DEFAULT_CONTENT_TYPE = { 'Content-Type': 'application/x-www-form-urlencoded' @@ -895,10 +883,10 @@ function getDefaultAdapter() { var adapter; if (typeof XMLHttpRequest !== 'undefined') { // For browsers use XHR adapter - adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); + adapter = __webpack_require__(/*! ./adapters/xhr */ "../../node_modules/axios/lib/adapters/xhr.js"); } else if (typeof process !== 'undefined') { // For node use HTTP adapter - adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); + adapter = __webpack_require__(/*! ./adapters/http */ "../../node_modules/axios/lib/adapters/xhr.js"); } return adapter; } @@ -973,14 +961,14 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { module.exports = defaults; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../dev/laravel-builder/node_modules/process/browser.js */ "./node_modules/process/browser.js"))) /***/ }), -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ +/***/ "../../node_modules/axios/lib/helpers/bind.js": +/*!*************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/bind.js ***! + \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1000,10 +988,10 @@ module.exports = function bind(fn, thisArg) { /***/ }), -/***/ "./node_modules/axios/lib/helpers/btoa.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/btoa.js ***! - \************************************************/ +/***/ "../../node_modules/axios/lib/helpers/btoa.js": +/*!*************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/btoa.js ***! + \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1048,17 +1036,17 @@ module.exports = btoa; /***/ }), -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ +/***/ "../../node_modules/axios/lib/helpers/buildURL.js": +/*!*****************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/buildURL.js ***! + \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); function encode(val) { return encodeURIComponent(val). @@ -1126,10 +1114,10 @@ module.exports = function buildURL(url, params, paramsSerializer) { /***/ }), -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ +/***/ "../../node_modules/axios/lib/helpers/combineURLs.js": +/*!********************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/combineURLs.js ***! + \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1152,17 +1140,17 @@ module.exports = function combineURLs(baseURL, relativeURL) { /***/ }), -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ +/***/ "../../node_modules/axios/lib/helpers/cookies.js": +/*!****************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/cookies.js ***! + \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); module.exports = ( utils.isStandardBrowserEnv() ? @@ -1217,10 +1205,10 @@ module.exports = ( /***/ }), -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ +/***/ "../../node_modules/axios/lib/helpers/isAbsoluteURL.js": +/*!**********************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/isAbsoluteURL.js ***! + \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1243,17 +1231,17 @@ module.exports = function isAbsoluteURL(url) { /***/ }), -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ +/***/ "../../node_modules/axios/lib/helpers/isURLSameOrigin.js": +/*!************************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/isURLSameOrigin.js ***! + \************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); module.exports = ( utils.isStandardBrowserEnv() ? @@ -1323,17 +1311,17 @@ module.exports = ( /***/ }), -/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": -/*!***************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! - \***************************************************************/ +/***/ "../../node_modules/axios/lib/helpers/normalizeHeaderName.js": +/*!****************************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/normalizeHeaderName.js ***! + \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ../utils */ "../../node_modules/axios/lib/utils.js"); module.exports = function normalizeHeaderName(headers, normalizedName) { utils.forEach(headers, function processHeader(value, name) { @@ -1347,17 +1335,17 @@ module.exports = function normalizeHeaderName(headers, normalizedName) { /***/ }), -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ +/***/ "../../node_modules/axios/lib/helpers/parseHeaders.js": +/*!*********************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/parseHeaders.js ***! + \*********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var utils = __webpack_require__(/*! ./../utils */ "../../node_modules/axios/lib/utils.js"); // Headers whose duplicates are ignored by node // c.f. https://nodejs.org/api/http.html#http_message_headers @@ -1412,10 +1400,10 @@ module.exports = function parseHeaders(headers) { /***/ }), -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ +/***/ "../../node_modules/axios/lib/helpers/spread.js": +/*!***************************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/helpers/spread.js ***! + \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -1451,18 +1439,18 @@ module.exports = function spread(callback) { /***/ }), -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ +/***/ "../../node_modules/axios/lib/utils.js": +/*!******************************************************!*\ + !*** /Users/nicolas/node_modules/axios/lib/utils.js ***! + \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -var isBuffer = __webpack_require__(/*! is-buffer */ "./node_modules/is-buffer/index.js"); +var bind = __webpack_require__(/*! ./helpers/bind */ "../../node_modules/axios/lib/helpers/bind.js"); +var isBuffer = __webpack_require__(/*! is-buffer */ "../../node_modules/is-buffer/index.js"); /*global toString:true*/ @@ -1764,6 +1752,50 @@ module.exports = { }; +/***/ }), + +/***/ "../../node_modules/is-buffer/index.js": +/*!******************************************************!*\ + !*** /Users/nicolas/node_modules/is-buffer/index.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +// The _isBuffer check is for Safari 5-7 support, because it's missing +// Object.prototype.constructor. Remove this eventually +module.exports = function (obj) { + return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) +} + +function isBuffer (obj) { + return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) +} + +// For Node v0.10 support. Remove this eventually. +function isSlowBuffer (obj) { + return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/regenerator/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/@babel/runtime/regenerator/index.js ***! + \**********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(/*! regenerator-runtime */ "./node_modules/regenerator-runtime/runtime.js"); + + /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./src/resources/js/components/AppHeader.vue?vue&type=script&lang=js&": @@ -141507,107 +141539,119 @@ function toComment(sourceMap) { (function (global, factory) { true ? module.exports = factory() : undefined; -}(this, (function () { 'use strict'; +}(this, function () { 'use strict'; -var isMergeableObject = function isMergeableObject(value) { - return isNonNullObject(value) - && !isSpecial(value) -}; + var isMergeableObject = function isMergeableObject(value) { + return isNonNullObject(value) + && !isSpecial(value) + }; -function isNonNullObject(value) { - return !!value && typeof value === 'object' -} + function isNonNullObject(value) { + return !!value && typeof value === 'object' + } -function isSpecial(value) { - var stringValue = Object.prototype.toString.call(value); + function isSpecial(value) { + var stringValue = Object.prototype.toString.call(value); - return stringValue === '[object RegExp]' - || stringValue === '[object Date]' - || isReactElement(value) -} + return stringValue === '[object RegExp]' + || stringValue === '[object Date]' + || isReactElement(value) + } -// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 -var canUseSymbol = typeof Symbol === 'function' && Symbol.for; -var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; + // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25 + var canUseSymbol = typeof Symbol === 'function' && Symbol.for; + var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7; -function isReactElement(value) { - return value.$$typeof === REACT_ELEMENT_TYPE -} + function isReactElement(value) { + return value.$$typeof === REACT_ELEMENT_TYPE + } -function emptyTarget(val) { - return Array.isArray(val) ? [] : {} -} + function emptyTarget(val) { + return Array.isArray(val) ? [] : {} + } -function cloneUnlessOtherwiseSpecified(value, options) { - return (options.clone !== false && options.isMergeableObject(value)) - ? deepmerge(emptyTarget(value), value, options) - : value -} + function cloneUnlessOtherwiseSpecified(value, options) { + return (options.clone !== false && options.isMergeableObject(value)) + ? deepmerge(emptyTarget(value), value, options) + : value + } -function defaultArrayMerge(target, source, options) { - return target.concat(source).map(function(element) { - return cloneUnlessOtherwiseSpecified(element, options) - }) -} + function defaultArrayMerge(target, source, options) { + return target.concat(source).map(function(element) { + return cloneUnlessOtherwiseSpecified(element, options) + }) + } + + function getMergeFunction(key, options) { + if (!options.customMerge) { + return deepmerge + } + var customMerge = options.customMerge(key); + return typeof customMerge === 'function' ? customMerge : deepmerge + } -function getMergeFunction(key, options) { - if (!options.customMerge) { - return deepmerge + function getEnumerableOwnPropertySymbols(target) { + return Object.getOwnPropertySymbols + ? Object.getOwnPropertySymbols(target).filter(function(symbol) { + return target.propertyIsEnumerable(symbol) + }) + : [] } - var customMerge = options.customMerge(key); - return typeof customMerge === 'function' ? customMerge : deepmerge -} -function mergeObject(target, source, options) { - var destination = {}; - if (options.isMergeableObject(target)) { - Object.keys(target).forEach(function(key) { - destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); - }); + function getKeys(target) { + return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target)) } - Object.keys(source).forEach(function(key) { - if (!options.isMergeableObject(source[key]) || !target[key]) { - destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); - } else { - destination[key] = getMergeFunction(key, options)(target[key], source[key], options); + + function mergeObject(target, source, options) { + var destination = {}; + if (options.isMergeableObject(target)) { + getKeys(target).forEach(function(key) { + destination[key] = cloneUnlessOtherwiseSpecified(target[key], options); + }); } - }); - return destination -} + getKeys(source).forEach(function(key) { + if (!options.isMergeableObject(source[key]) || !target[key]) { + destination[key] = cloneUnlessOtherwiseSpecified(source[key], options); + } else { + destination[key] = getMergeFunction(key, options)(target[key], source[key], options); + } + }); + return destination + } -function deepmerge(target, source, options) { - options = options || {}; - options.arrayMerge = options.arrayMerge || defaultArrayMerge; - options.isMergeableObject = options.isMergeableObject || isMergeableObject; + function deepmerge(target, source, options) { + options = options || {}; + options.arrayMerge = options.arrayMerge || defaultArrayMerge; + options.isMergeableObject = options.isMergeableObject || isMergeableObject; - var sourceIsArray = Array.isArray(source); - var targetIsArray = Array.isArray(target); - var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; + var sourceIsArray = Array.isArray(source); + var targetIsArray = Array.isArray(target); + var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray; - if (!sourceAndTargetTypesMatch) { - return cloneUnlessOtherwiseSpecified(source, options) - } else if (sourceIsArray) { - return options.arrayMerge(target, source, options) - } else { - return mergeObject(target, source, options) + if (!sourceAndTargetTypesMatch) { + return cloneUnlessOtherwiseSpecified(source, options) + } else if (sourceIsArray) { + return options.arrayMerge(target, source, options) + } else { + return mergeObject(target, source, options) + } } -} -deepmerge.all = function deepmergeAll(array, options) { - if (!Array.isArray(array)) { - throw new Error('first argument should be an array') - } + deepmerge.all = function deepmergeAll(array, options) { + if (!Array.isArray(array)) { + throw new Error('first argument should be an array') + } - return array.reduce(function(prev, next) { - return deepmerge(prev, next, options) - }, {}) -}; + return array.reduce(function(prev, next) { + return deepmerge(prev, next, options) + }, {}) + }; -var deepmerge_1 = deepmerge; + var deepmerge_1 = deepmerge; -return deepmerge_1; + return deepmerge_1; -}))); +})); /***/ }), @@ -141754,38 +141798,6 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { } -/***/ }), - -/***/ "./node_modules/is-buffer/index.js": -/*!*****************************************!*\ - !*** ./node_modules/is-buffer/index.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports) { - -/*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - */ - -// The _isBuffer check is for Safari 5-7 support, because it's missing -// Object.prototype.constructor. Remove this eventually -module.exports = function (obj) { - return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer) -} - -function isBuffer (obj) { - return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) -} - -// For Node v0.10 support. Remove this eventually. -function isSlowBuffer (obj) { - return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0)) -} - - /***/ }), /***/ "./node_modules/is-lower-case/is-lower-case.js": @@ -207787,7 +207799,7 @@ window.Popper = __webpack_require__(/*! popper.js */ "./node_modules/popper.js/d * CSRF token as a header based on the value of the "XSRF" token cookie. */ -window.axios = __webpack_require__(/*! axios */ "./node_modules/axios/index.js"); +window.axios = __webpack_require__(/*! axios */ "../../node_modules/axios/index.js"); window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; /** * Next we will register the CSRF Token as a common header with Axios so that @@ -208694,6 +208706,8 @@ function () { var map = { "./APIControllerPipe.js": "./src/resources/js/fileFactories/Laravel/pipes/APIControllerPipe.js", + "./APIResourceCollectionPipe.js": "./src/resources/js/fileFactories/Laravel/pipes/APIResourceCollectionPipe.js", + "./APIResourcePipe.js": "./src/resources/js/fileFactories/Laravel/pipes/APIResourcePipe.js", "./APIRoutesPipe.js": "./src/resources/js/fileFactories/Laravel/pipes/APIRoutesPipe.js", "./BasePipe.js": "./src/resources/js/fileFactories/Laravel/pipes/BasePipe.js", "./ControllerPipe.js": "./src/resources/js/fileFactories/Laravel/pipes/ControllerPipe.js", @@ -208792,21 +208806,21 @@ function (_ModelPipe) { content: _utilities_Template__WEBPACK_IMPORTED_MODULE_0__["default"]["for"]('APIController').replace({ ___MODEL___: model.className(), ___MODEL_INSTANCE___: _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].camelCase(model.className()), - ___WITH_RELATIONSHIPS___: _this.withRelationships(model) + ___LOAD_RELATIONSHIPS___: _this.loadRelationships(model) }) }; }); } }, { - key: "withRelationships", - value: function withRelationships(model) { - return "with([" + [].concat(_toConsumableArray(model.relationships.hasMany.map(function (target) { + key: "loadRelationships", + value: function loadRelationships(model) { + return "load([" + [].concat(_toConsumableArray(model.relationships.hasMany.map(function (target) { return _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].camelCase(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].pluralize(target.name))); })), _toConsumableArray(model.relationships.belongsTo.map(function (target) { return _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].camelCase(target.name)); })), _toConsumableArray(model.relationships.belongsToMany.map(function (target) { return _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].camelCase(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].pluralize(target.name))); - }))).join(", ") + "])->"; + }))).join(", ") + "])"; } }]); @@ -208815,6 +208829,192 @@ function (_ModelPipe) { +/***/ }), + +/***/ "./src/resources/js/fileFactories/Laravel/pipes/APIResourceCollectionPipe.js": +/*!***********************************************************************************!*\ + !*** ./src/resources/js/fileFactories/Laravel/pipes/APIResourceCollectionPipe.js ***! + \***********************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return APIResourcePipe; }); +/* harmony import */ var _utilities_Template__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../utilities/Template */ "./src/resources/js/utilities/Template.js"); +/* harmony import */ var _ModelPipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModelPipe */ "./src/resources/js/fileFactories/Laravel/pipes/ModelPipe.js"); +/* harmony import */ var _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utilities/Formatter */ "./src/resources/js/utilities/Formatter.js"); +/* harmony import */ var node_forge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node-forge */ "./node_modules/node-forge/lib/index.js"); +/* harmony import */ var node_forge__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_forge__WEBPACK_IMPORTED_MODULE_3__); +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + +function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + + + + + +var APIResourcePipe = +/*#__PURE__*/ +function (_ModelPipe) { + _inherits(APIResourcePipe, _ModelPipe); + + function APIResourcePipe() { + _classCallCheck(this, APIResourcePipe); + + return _possibleConstructorReturn(this, _getPrototypeOf(APIResourcePipe).apply(this, arguments)); + } + + _createClass(APIResourcePipe, [{ + key: "calculateFiles", + value: function calculateFiles() { + var omc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ObjectModelCollection; + return _toConsumableArray(this.APIResourceFiles()); + } + }, { + key: "APIResourceFiles", + value: function APIResourceFiles() { + var _this = this; + + return this.omc.modelsIncludingUser().map(function (model) { + return { + path: "app/Http/Resources/" + model.className() + "Collection.php", + content: _utilities_Template__WEBPACK_IMPORTED_MODULE_0__["default"]["for"]('APIResourceCollection').replace({ + ___MODEL___: _this.className(model) + }) + }; + }); + } + }]); + + return APIResourcePipe; +}(_ModelPipe__WEBPACK_IMPORTED_MODULE_1__["default"]); + + + +/***/ }), + +/***/ "./src/resources/js/fileFactories/Laravel/pipes/APIResourcePipe.js": +/*!*************************************************************************!*\ + !*** ./src/resources/js/fileFactories/Laravel/pipes/APIResourcePipe.js ***! + \*************************************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return APIResourcePipe; }); +/* harmony import */ var _utilities_Template__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../utilities/Template */ "./src/resources/js/utilities/Template.js"); +/* harmony import */ var _ModelPipe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ModelPipe */ "./src/resources/js/fileFactories/Laravel/pipes/ModelPipe.js"); +/* harmony import */ var _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utilities/Formatter */ "./src/resources/js/utilities/Formatter.js"); +/* harmony import */ var node_forge__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! node-forge */ "./node_modules/node-forge/lib/index.js"); +/* harmony import */ var node_forge__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(node_forge__WEBPACK_IMPORTED_MODULE_3__); +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + +function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + + + + + + +var APIResourcePipe = +/*#__PURE__*/ +function (_ModelPipe) { + _inherits(APIResourcePipe, _ModelPipe); + + function APIResourcePipe() { + _classCallCheck(this, APIResourcePipe); + + return _possibleConstructorReturn(this, _getPrototypeOf(APIResourcePipe).apply(this, arguments)); + } + + _createClass(APIResourcePipe, [{ + key: "calculateFiles", + value: function calculateFiles() { + var omc = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ObjectModelCollection; + return _toConsumableArray(this.APIResourceFiles()); + } + }, { + key: "APIResourceFiles", + value: function APIResourceFiles() { + var _this = this; + + return this.omc.modelsIncludingUser().map(function (model) { + return { + path: "app/Http/Resources/" + model.className() + "Resource.php", + content: _utilities_Template__WEBPACK_IMPORTED_MODULE_0__["default"]["for"]('APIResource').replace({ + ___COLUMNS_BLOCK___: _this.columnsBlock(model), + ___MODEL___: _this.className(model) + }) + }; + }); + } + }, { + key: "columnsBlock", + value: function columnsBlock(model) { + return model.attributes.filter(function (attribute) { + return !['password', 'remember_token'].includes(attribute.name); + }).map(function (attribute) { + return _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(attribute.name) + " => $this->" + attribute.name; + }).concat(model.relationships.hasMany.concat(model.relationships.belongsToMany).map(function (target) { + return _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].snakeCase(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].pluralize(target.name))) + " => " + _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].pascalCase(target.name) + "Resource::collection($this->whenLoaded(" + _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].snakeCase(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].pluralize(target.name))) + "))"; + })).concat(model.relationships.belongsTo.map(function (target) { + return _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].snakeCase(target.name)) + " => new " + _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].pascalCase(target.name) + "Resource($this->whenLoaded(" + _utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].singleQuotePad(_utilities_Formatter__WEBPACK_IMPORTED_MODULE_2__["default"].snakeCase(target.name)) + "))"; + })).join(",\n"); + } + }]); + + return APIResourcePipe; +}(_ModelPipe__WEBPACK_IMPORTED_MODULE_1__["default"]); + + + /***/ }), /***/ "./src/resources/js/fileFactories/Laravel/pipes/APIRoutesPipe.js": @@ -212166,8 +212366,8 @@ function () { /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(/*! /Users/anders/Code/skeleton/packages/PipeDream/Laravel/src/resources/js/app.js */"./src/resources/js/app.js"); -module.exports = __webpack_require__(/*! /Users/anders/Code/skeleton/packages/PipeDream/Laravel/src/resources/css/app.css */"./src/resources/css/app.css"); +__webpack_require__(/*! /Users/nicolas/dev/laravel-builder/src/resources/js/app.js */"./src/resources/js/app.js"); +module.exports = __webpack_require__(/*! /Users/nicolas/dev/laravel-builder/src/resources/css/app.css */"./src/resources/css/app.css"); /***/ }), diff --git a/src/resources/js/fileFactories/Laravel/pipes/APIControllerPipe.js b/src/resources/js/fileFactories/Laravel/pipes/APIControllerPipe.js index fc3f969..641edb2 100644 --- a/src/resources/js/fileFactories/Laravel/pipes/APIControllerPipe.js +++ b/src/resources/js/fileFactories/Laravel/pipes/APIControllerPipe.js @@ -10,14 +10,14 @@ export default class APIControllerPipe extends ModelPipe { content: Template.for('APIController').replace({ ___MODEL___: model.className(), ___MODEL_INSTANCE___: F.camelCase(model.className()), - ___WITH_RELATIONSHIPS___: this.withRelationships(model) + ___LOAD_RELATIONSHIPS___: this.loadRelationships(model), }) } }) } - withRelationships(model) { - return "with([" + [ + loadRelationships(model) { + return "load([" + [ ... model.relationships.hasMany.map(target => { return F.singleQuotePad(F.camelCase(F.pluralize(target.name))) }), @@ -29,6 +29,6 @@ export default class APIControllerPipe extends ModelPipe { ... model.relationships.belongsToMany.map(target => { return F.singleQuotePad(F.camelCase(F.pluralize(target.name))) }), - ].join(", ") + "])->" + ].join(", ") + "])" } } \ No newline at end of file diff --git a/src/resources/js/fileFactories/Laravel/pipes/APIResourceCollectionPipe.js b/src/resources/js/fileFactories/Laravel/pipes/APIResourceCollectionPipe.js new file mode 100644 index 0000000..7968323 --- /dev/null +++ b/src/resources/js/fileFactories/Laravel/pipes/APIResourceCollectionPipe.js @@ -0,0 +1,24 @@ +import Template from '../../../utilities/Template' +import ModelPipe from './ModelPipe' + +import F from '../../../utilities/Formatter' +import { random } from 'node-forge'; + +export default class APIResourcePipe extends ModelPipe { + calculateFiles(omc = ObjectModelCollection) { + return [ + ... this.APIResourceFiles(), + ] + } + + APIResourceFiles() { + return this.omc.modelsIncludingUser().map(model => { + return { + path: "app/Http/Resources/" + model.className() + "Collection.php", + content: Template.for('APIResourceCollection').replace({ + ___MODEL___: this.className(model), + }) + } + }) + } +} diff --git a/src/resources/js/fileFactories/Laravel/pipes/APIResourcePipe.js b/src/resources/js/fileFactories/Laravel/pipes/APIResourcePipe.js new file mode 100644 index 0000000..2402fd8 --- /dev/null +++ b/src/resources/js/fileFactories/Laravel/pipes/APIResourcePipe.js @@ -0,0 +1,37 @@ +import Template from '../../../utilities/Template' +import ModelPipe from './ModelPipe' + +import F from '../../../utilities/Formatter' +import { random } from 'node-forge'; + +export default class APIResourcePipe extends ModelPipe { + calculateFiles(omc = ObjectModelCollection) { + return [ + ... this.APIResourceFiles(), + ] + } + + APIResourceFiles() { + return this.omc.modelsIncludingUser().map(model => { + return { + path: "app/Http/Resources/" + model.className() + "Resource.php", + content: Template.for('APIResource').replace({ + ___COLUMNS_BLOCK___: this.columnsBlock(model), + ___MODEL___: this.className(model), + }) + } + }) + } + + columnsBlock(model) { + return model.attributes.filter(attribute => { + return !['password', 'remember_token'].includes(attribute.name) + }).map(attribute => { + return F.singleQuotePad(attribute.name) + " => $this->" + attribute.name + }).concat(model.relationships.hasMany.concat(model.relationships.belongsToMany).map(target => { + return F.singleQuotePad(F.snakeCase(F.pluralize(target.name))) + " => " + F.pascalCase(target.name) + "Resource::collection($this->whenLoaded(" + F.singleQuotePad(F.snakeCase(F.pluralize(target.name))) + "))" + })).concat(model.relationships.belongsTo.map(target => { + return F.singleQuotePad(F.snakeCase(target.name)) + " => new " + F.pascalCase(target.name) + "Resource($this->whenLoaded(" + F.singleQuotePad(F.snakeCase(target.name)) + "))" + })).join(",\n") + } +} diff --git a/src/templates/APIController b/src/templates/APIController index bb0733d..f79fd89 100644 --- a/src/templates/APIController +++ b/src/templates/APIController @@ -3,35 +3,35 @@ namespace App\Http\Controllers; use App\___MODEL___; +use App\Http\Resources\___MODEL___Collection; +use App\Http\Resources\___MODEL___Resource; class ___MODEL___APIController extends Controller { public function index() { - return ___MODEL___::all(); + return new ___MODEL___Collection(___MODEL___::paginate()); } - public function show($id) + public function show(___MODEL___ $___MODEL_INSTANCE___) { - return ___MODEL___::___WITH_RELATIONSHIPS___find($id); + return new ___MODEL___Resource($___MODEL_INSTANCE___->___LOAD_RELATIONSHIPS___); } public function store(Request $request) { - return ___MODEL___::create($request->all()); + return new ___MODEL___Resource(___MODEL___::create($request->all())); } - public function update(Request $request, $id) + public function update(Request $request, ___MODEL___ $___MODEL_INSTANCE___) { - $___MODEL_INSTANCE___ = ___MODEL___::findOrFail($id); $___MODEL_INSTANCE___->update($request->all()); - return $___MODEL_INSTANCE___; + return new ___MODEL___Resource($___MODEL_INSTANCE___); } - public function delete(Request $request, $id) + public function destroy(Request $request, ___MODEL___ $___MODEL_INSTANCE___) { - $___MODEL_INSTANCE___ = ___MODEL___::findOrFail($id); $___MODEL_INSTANCE___->delete(); return response()->json([], \Illuminate\Http\Response::HTTP_NO_CONTENT); diff --git a/src/templates/APIResource b/src/templates/APIResource new file mode 100644 index 0000000..79c8556 --- /dev/null +++ b/src/templates/APIResource @@ -0,0 +1,21 @@ + ['index', 'show', 'store', 'update', 'delete'] + 'only' => ['index', 'show', 'store', 'update', 'destroy'] ]); \ No newline at end of file