Inheritance: extends DashController
Example #1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     // \DB::table('users')->where('id', \Auth::user()->id)->get();
     $currencyController = new CurrencyController();
     $data = array('pageTitle' => 'Dashboard', 'secondaryCurrencyMoney' => $currencyController->convert(\Auth::user()->currentMoney, \Auth::user()->mainCurrency, \Auth::user()->secondaryCurrency));
     return \View::make('dashboard')->with('data', $data);
 }
<?php

/**
 * Created by PhpStorm.
 * User: Haziq
 * Date: 12/7/2015
 * Time: 12:03 AM
 */
require_once $_SERVER['DOCUMENT_ROOT'] . '/matrimonialweb/Controller/CurrencyController.php';
$Object = new CurrencyController();
$result = $Object->getCurrencyList();
echo json_encode($result);