Eshop-Laravel/app/Http/Controllers/MainController.php

19 lines
272 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Menu;
class MainController extends Controller
{
static public $data = ['title' => 'Eshoper | '] ;
function __construct(){
self::$data['menu'] = Menu::all()->toArray();
}
}