方法[postSigin]不存在 - Windows [复制]

This question already has an answer here:

Method [postSignin] does not exist on [App\Http\Controllers\UserController]. I'm trying to create a login in form. The signup worked but when I sign in, I get this error. I'm now getting Parse error: syntax error, unexpected ';', expecting ',' or '

Here is my Route:

Auth::routes();

Route::get('/', function () {
    return view('welcome');
})->name('home');

Route::post('/signup', [
    'uses' => 'UserController@postSignUp',
    'as' => 'signup'
]);

Route::post('/signin', [
    'uses' => 'UserController@postSignIn',
    'as' => 'signin'
]);

Route::get('/dashboard', [
    'uses' => 'UserController@getDashboard',
    'as' => 'dashboard'
]);

My controller:

<?php

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;

class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

}

UserController:

<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Auth\Authenticatable;

class UserController extends Controller
{
public function getDashboard()
{
    return view('dashboard');
}

public function postSignUp(Request $request)
{
    $email = $request['email'];
    $first_name = $request['first_name'];
    $password = bcrypt($request['password']);

    $user = new User();
    $user->email = $email;
    $user->first_name = $first_name;
    $user->password = $password;

    $user->save();

    Auth::login($user);

    return redirect()->route('dashboard');
}

public function postSignIn(Request $request)
{
   if (Auth::attempt(['email' => $request['email'], 'password' => $request['password']])) {
       return redirect()->route('dashboard');
   }
   return redirect()->back();
}
public function method(Request $req)
{
    dd($req->all();
}

}

And my blade:

<form action="{{ route('signin') }}" method="post">

What did I do wrong?

</div>

in you web.php

route::post('signin','UserControllerr@method')->name('signin');

in your App\Http\Controllers\UserController add like this

public function method(Request $req){
    dd($req->all();
}