Aktion App\Http\Controller\Controller@action nicht definiert

Möchte ich ein Formular Absenden, aber ich bekomme immer Action App\Http\Controllers\About@show not defined obwohl die Funktion show definiert ist:

<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Requests;


class AboutController extends Controller
{
    public function create()
    {
        return view('about.contact');
    }

    public function show()
    {
        return view('about.contactshow');
    }

}

Dies ist meine Klinge Vorlage about\contact.blade.php:

{!! Form::open(array('action' => 'About@show', 'method' => 'post')) !!}

    {!! Form::label('username','Username',array('id'=>'user','class'=>'')) !!}
    {!! Form::text('username','user 1',array('id'=>'user','class'=>'', 'placeholder' => 'user 1')) !!}

    {!! Form::submit('Click Me!') !!}


{!! Form::close() !!}

Was mache ich falsch?

  • Der controller namens AboutController, aber Ihre versuche, auf About.
InformationsquelleAutor Black | 2017-02-11
Schreibe einen Kommentar