vendredi 26 avril 2019

Method not found in laravel 5.6

I am facing a mysterious problem.When I press submit it shows Method App\Http\Controllers\RentController::store_data does not exist. I am trying to find out but can't. Thanks in advance.

In my route

Route::post('/save_rent', 'RentController@store_data'); 

In my controller

<?php

namespace App\Http\Controllers;
use Session;
use App\rent;
use Illuminate\Http\Request;

class RentController extends Controller
{
  public function store_data(Request $request)
 {
    dd('12');
 }
}

In my view

<form class="form form-horizontal" action="" method="POST" enctype="multipart/form-data">
  



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire