PHP code example of iamdevroyal / laravel-mobile-jump

1. Go to this page and download the library: Download iamdevroyal/laravel-mobile-jump library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

iamdevroyal / laravel-mobile-jump example snippets


return [
    // URL prefix for all routes (e.g. /mobile-jump/api/connect)
    'route_prefix'     => env('MOBILE_JUMP_PREFIX', 'mobile-jump'),

    // Session lifetime in seconds
    'session_ttl'      => env('MOBILE_JUMP_TTL', 600),

    // Storage driver: 'redis' | 'database' | 'file'
    'storage'          => env('MOBILE_JUMP_STORAGE', 'redis'),

    // Redis connection name (from config/database.php)
    'redis_connection' => env('MOBILE_JUMP_REDIS_CONNECTION', 'default'),

    // Whether to register routes automatically
    'register_routes'  => true,

    // Middleware applied to API routes
    'middleware'       => ['api'],

    // Override the APK download URL (null = use bundled APK)
    'apk_url'          => null,
];
bash
php artisan mobile:jump:install
bash
php artisan vendor:publish --tag=mobile-jump-migrations
php artisan migrate
bash
php artisan vendor:publish --tag=mobile-jump-config