Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
gilour
/
foundation
/
src
/
Core
/
Controllers
:
BootstrapController.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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()); } }