20 lines
473 B
PHP
20 lines
473 B
PHP
|
<?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)]);
|
||
|
}
|
||
|
}
|