make 3acontroller in laravel 8

Solutions on MaxInterview for make 3acontroller in laravel 8 by the best coders in the world

showing results for - "make 3acontroller in laravel 8"
Valentina
26 Jul 2019
1php artisan make:controller MyController
María Alejandra
24 Sep 2017
1php artisan make:controller MyController
2php artisan make:controller CompanyController --resource
3//To create with a Model
4php artisan make:controller CompanyController --resource --model=CompanyModel
5
Debora
29 Mar 2017
1php artisan make:controller ShowProfile
Agustín
08 Jul 2017
1//i want to create dashboard controller
2php artisan make:controller DashboardController
3// if i want to create resourse controller then
4php artisan make:controller Dashboardcontroller -r
5//and also with
6php artisan make:controller Dashboardcontroller --resource
Laurence
24 Apr 2017
1Route::get('/{page_name}', [PageController::class, 'getPage'])->name('website.pages');
2
3<?php
4
5namespace App\Http\Controllers;
6
7use Illuminate\Http\Request;
8
9class PageController extends Controller
10{
11    public function getPage($page_name){
12        if(!view()->exists("pages.{$page_name}")){
13            abort(404);
14        }
15        return view("pages.{$page_name}");
16    }
17}
18
similar questions
queries leading to this page
make 3acontroller in laravel 8