jeudi 17 octobre 2019

View error illega argument exception, controller returns a view create.blade.php

I have an employee controller setup, there is a default method called create in the controller, it returns a view called create, which I have created under the views directory. The file is called create.blade.php, and I am using enter code hereresource, I have can see from the url, create but an exception called illegal argument exception is thrown because the route cannot be found. I have seen a lot of other posts and none could help me with my issue. I have spent a lot of time but could not single out why I am getting the same issue. I do not have any other issue with my views in employees view folder under the views directory.

EmployeeController
{
    public function create()
    {
        //dd('line 48');
        return view('emp-mgmnt/create');
    }
}
php artisan config:clear
php artisan cache:clear
composer dump-autload
php artisan route:clear
php artisan clear-compiled

//Employee Route
Route::resource('emp-mgmnt', 'EmployeeController');
Route::post('emp-mgmnt/search', 'EmployeeController@search')->name('emp-mgmnt.search');


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/35Jy1eU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire