<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Cache;
use DB;
use App\IcerikTuru;
use App\Kapsam;
use App\Yonetmelik;
use App\Tablo;
use App\Parametre;
use App\Metot;
class MainController extends Controller
{
public function index()
{
IcerikTuru::find(1)->kapsamlar()->get();
return view('welcome');
}
}
/* welcome.blade.php dosyası */
<!DOCTYPE html>
<html>
<head>
<title>#test.laravel</title>
</head>
<body>
<div>
[ {{ (round(microtime(true) - LARAVEL_START,2)) }} saniye ]
[ {{ (round(memory_get_usage()/1024/1024,2)) }} MB ]
</div>
</body>
</html>