2017-08-24 86 views
5

yöntem verilmiyor Http İstisna laravel aşağıdaki kodla laravel basit denetleyici sınıfında hatası alınıyor 5,4

MethodNotAllowedHttpException

namespace App\Http\Controllers; 

use Illuminate\Http\Request; 
use DB; 
use app\Http\Requests; 
use Illuminate\Support\Facades\Auth; 


class ProfileController extends Controller 
{ 


    private $userId; 

    public function __construct() 
    { 
     $this->userId = Auth::id();  
    } 

} 

Rota:

Route::post('user_profile','[email protected]'); 

Arama ölçütü: <form action="/user_profile" method="post">

+1

payı tam hatayı çalıştırmak da rota bilgilerini paylaşmak zorunda. – Naincy

+0

onun tam, başka hiçbir şey –

+0

hangi yöntem? ALMAK? POST? PUT/YAMA? SİL? Bilgi, bilgi ve bilgi ihtiyacımız var ... – delboy1978uk

cevap

0

ben ....

php artisan config:clear 
php artisan cache:clear 
php artisan route:clear