I have created an controller having name CrudsController.php
where I am performing crud operation and here is my route web.php
file as mention below:
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', 'CrudsController@index')->name('employee.index');
But what happen when I run command php artisan serve
then I got this message Target class [CrudsController] does not exist.
I don't know why? Please help me to solve this.
Thank You