samedi 28 novembre 2015

Laravel simple router controller@action get NotFoundHttpException Error

i'm below code is my simple route to use Controller action:

Route::get('/CheckCustomerTransactionPayment', 'PaymentTransactionController@check');

and this is my controller class:

namespace App\Http\Controllers;

use App\CustomerTransactions;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\Log;
use Payment\Payment;

class PaymentTransactionController extends Controller
{
    public function check(Request $request)
    {
        dd($request->all());
    }
}

i get this error:

NotFoundHttpException in RouteCollection.php line 161:

URL to check that:

http://localhost/project/public/CheckCustomerTransactionPayment/112323



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire