This file contains hidden or 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 | |
| namespace App\Traits; | |
| use App\Models\Payment; | |
| use App\Models\Payout; | |
| use App\Models\User; | |
| use App\Settings\MpesaSettings; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Cache; |
This file contains hidden or 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 { createApp } from 'vue' | |
| import { createPinia } from "pinia" | |
| import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router" | |
| import App from './App.vue' | |
| const routes: Array<RouteRecordRaw> = [ | |
| { | |
| path: "/", | |
| name: "Home", | |
| component: () => import("@/views/index.vue"), |
This file contains hidden or 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
| <script lang="ts" setup> | |
| import { onMounted, ref, reactive, onBeforeUnmount, watch } from "vue"; | |
| import { storeToRefs } from "pinia"; | |
| import {useRouter} from "vue-router"; | |
| import useAuthStore from "../stores/auth.store"; | |
| const router = useRouter(); | |
| const authStore = useAuthStore(); | |
| const { token, user } = storeToRefs(authStore); | |
This file contains hidden or 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 { defineStore } from "pinia"; | |
| import { ref } from "vue"; | |
| import { remoteGet, remotePost, updateRecord } from "../../../http"; | |
| const setObject = async (key: string, value: any) => { | |
| localStorage.setItem(key, JSON.stringify(value)); | |
| } | |
| const setString = async (key: string, value: any) => { | |
| localStorage.setItem(key, value); |
This file contains hidden or 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 | |
| /** | |
| * Pluggable mpesa class | |
| * Use as controller or adapt as you wish | |
| */ | |
| use Illuminate\Support\Facades\Cache; | |
| use Illuminate\Support\Facades\Http; | |
| use Illuminate\Support\Str; |
This file contains hidden or 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 | |
| namespace App\Traits; | |
| use Illuminate\Support\Str; | |
| trait Uuid | |
| { | |
| protected static function bootUuid() | |
| { |
This file contains hidden or 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 | |
| class VueValetDriver extends ValetDriver | |
| { | |
| static $publicPath = 'public'; | |
| static $startFile = 'public/index.html'; | |
| /** | |
| * Determine if the driver serves the request. | |
| * |