Somehow my model cannot be found, I also did try with use;
This is in a normal controller
public function work() {
$work = App\Work::all();
$coun = App\Work::count();
return view('work', ['counter' => $coun, 'data' => $work]);
}
FatalThrowableError in PageController.php line 26:
Class 'App\Http\Controllers\App\Work' not found
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community