2017-08-24 3 views
5

Erste Fehler in Laravel einfacher Controller-Klasse mit folgendem CodeMethode nicht Http Ausnahme Laravel 5.4 erlaubt

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();  
    } 

} 

Route:

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

Berufung von: <form action="/user_profile" method="post">

+1

Aktie vollständige Fehler .... auch teilen sich die Strecke Details laufen. – Naincy

+0

seine komplette, nichts anderes –

+0

welche methode? BEKOMMEN? POST? PUT/PATCH? LÖSCHEN? Wir brauchen Informationen, Informationen, Informationen ... – delboy1978uk

Antwort

0

Ich habe

php artisan config:clear 
php artisan cache:clear 
php artisan route:clear 
Verwandte Themen