Class 'App\Http\Controllers\Slider' not found in HomeController.php (line 24)

Posted 1 year ago by asad98iftikhar

use App\Slider; use Carbon\Carbon; use Illuminate\Http\Request; use App\Http\Controllers\Controller;

This is my SliderController

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class HomeController extends Controller { /** * Create a new controller instance. * * @return void */

 * Show the application dashboard.
 * @return \Illuminate\Http\Response

public function index()
   return view('welcome',compact('sliders'));


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.