swimmer
5 months ago
1008
7
Laravel

Invalid route action,why?

Posted 5 months ago by swimmer

I am getting the following error

“Invalid route action: [App\Http\Controllers\CmsController].”

I went over the CmsController and I do not find any errors.

My code is:


<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class CmsController extends Controller
{


    public function dashboard()
    {   

        
        return view('cms.dashboard');
    }

    /**
     * Display a listing of the resource.
     
     */
    public function index()
    {
        //
    }

    /**
     * Show the form for creating a new resource.
     *
    
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
   
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Display the specified resource.
     
     */
    public function show($id)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
    
     */
    public function edit($id)
    {
        //
    }

    /**
     * Update the specified resource in storage.
  
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     
     
     */
    public function destroy($id)
    {
        //
    }
}



What am I doing wrong?

You can find a print screen of my error at the following link:

https://drive.google.com/file/d/1gueMqz422P-iHHdhj-92MHCVogA_xuKq/view?usp=sharing

Please sign in or create an account to participate in this conversation.