Skip to content

Commit d066f5f

Browse files
committed
Ensure global Laravel object initialization in common.js
1 parent 260b9fa commit d066f5f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

resources/js/common.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1717
*/
1818

19+
// Ensure the global Laravel object exists on every page that loads this bundle.
20+
window.Laravel = window.Laravel || {};
21+
1922
$(function () {
2023
// Add token to any ajax requests.
2124
$.ajaxSetup({

0 commit comments

Comments
 (0)