megacommit
This commit is contained in:
		
							parent
							
								
									2451ab45cb
								
							
						
					
					
						commit
						34ed81516b
					
				
					 51 changed files with 1200 additions and 251 deletions
				
			
		| 
						 | 
				
			
			@ -8,12 +8,15 @@ class CinemaController extends \App\Http\Controllers\Controller
 | 
			
		|||
    {
 | 
			
		||||
        $this->middleware('auth');
 | 
			
		||||
        $this->middleware('atleast:employee');
 | 
			
		||||
        $this->middleware('permission:manage_cinemas')->only(['create', 'store', 'edit', 'update', 'destroy']);
 | 
			
		||||
        $this->middleware('permission:READ_CINEMAS')->only('index', 'show');
 | 
			
		||||
        $this->middleware('permission:CREATE_CINEMAS')->only('create', 'store');
 | 
			
		||||
        $this->middleware('permission:UPDATE_CINEMAS')->only('edit', 'update');
 | 
			
		||||
        $this->middleware('permission:DELETE_CINEMAS')->only('destroy');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function showAllCinemas()
 | 
			
		||||
    public function index()
 | 
			
		||||
    {
 | 
			
		||||
        return view('manage.cinemas.index', ['title' => "Manage Cinemas", 'cinemas' => \App\Models\Cinema::all()]);
 | 
			
		||||
        return view('manage.cinemas.index', ['title' => "Manage Cinemas", 'cinemas' => \App\Models\Cinema::all(), 'users' => \App\Models\User::all()]);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function edit($id)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue