This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Based on code-snipped in laracasts-discussion by bobbybouwmann (https://github.com/bobbybouwmann) | |
// https://laracasts.com/discuss/channels/general-discussion/custom-sequence-number-generation-for-order?reply=70649 | |
// ----------------------------------------------------------------------------------------------------------------- | |
function getNextOrderNumber() | |
{ | |
// Get the last created order | |
$lastOrder = Order::orderBy('created_at', 'desc')->first(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import modules | |
import Swiper from 'swiper' | |
// Import alpine | |
import Alpine from 'alpinejs' | |
window.Alpine = Alpine | |
// Register module in alpines store | |
Alpine.store('Swiper', Swiper) |