changes
This commit is contained in:
@ -177,15 +177,10 @@ class WebsiteController extends Controller
|
||||
$data = News::where('provinces_id',$id)->where('status',1)->orderBy('display_order')->paginate(9);
|
||||
return view($this->path . '.single', compact('data','categoryTitle'));
|
||||
}
|
||||
|
||||
public function videoDetail($alias){
|
||||
$data = Videos::where('alias', $alias)->where('status', 1)->first();
|
||||
$recentNews = News::where('status',1)->inRandomOrder()->limit(12)->latest()->get();
|
||||
return view($this->path . '.video-detail', compact('data','recentNews'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// public function single($alias)
|
||||
// {
|
||||
// $categoryId = Newscategories::where('alias', $alias)->pluck('category_id')->first();
|
||||
// $categoryTitle = Newscategories::where('alias', $alias)->pluck('nepali_title')->first();
|
||||
|
||||
// $data = News::where('newscategories_id', $categoryId)->where('status', 1)->orderBy('display_order')->paginate(9);
|
||||
|
||||
// return view($this->path . '.single', compact('data', 'categoryTitle'));
|
||||
// }
|
Reference in New Issue
Block a user