Route Error Forbidden

Posted 3 weeks ago by muazzamazaz

I have a route like this

   Route::resource('VisitorPlan', 'VisitorPlanController', [
        'names' => [
            'index'   => 'VisitorPlan',
            'destroy' => 'VisitorPlan.destroy',
        ],
    ]);

Controller

  public function create()
    {
     
        return view('VisitorPlan.add-VisitorPlan')->with($data);
        
    }

<form action='VisitorPlan/create' >
                  <input class="btn btn-block" type="submit" value="Create Plane" style="margin-bottom: 100px;margin-top: 50PX;">
</form>

Gives error

Forbidden

It seems controller function Create is being called from route.

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