cineflex/app/Http/Controllers/Main/CinemaController.php

20 lines
473 B
PHP
Raw Normal View History

2023-02-02 08:17:38 +01:00
<?php
namespace App\Http\Controllers\Main;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class CinemaController extends Controller
{
public function showAllCinemas()
{
return view('main.cinemas.index', ['title' => "Cinemas", 'cinemas' => \App\Models\Cinema::all()]);
}
public function show($id)
{
return view('main.cinemas.cinema', ['title' => "Cinema", 'cinema' => \App\Models\Cinema::findOrfail($id)]);
}
}