$data = User::orderBy('id','DESC')->get(); return view('ogrenci.index',compact('data')) ->with('i');
$data = User::where('role','ogrenci')->orderBy('id','DESC')->get(); return view('ogrenci.index',compact('data')) ->with('i');
$data = User::whereHas('roles', function($q){ $q->where('id', '3'); })->get();
Laravel Türkiye Forumları, ücretsiz forum uygulaması Flarum ile yapılmıştır.