You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
301 B

<?php
namespace App\Http\Controllers;
use App\Models\NewsAndUpdate;
use Illuminate\Http\Request;
class NewsController extends Controller
{
public function news_detail($slug){
$news = NewsAndUpdate::where('slug',$slug)->get();
return view('news_detail',compact('news'));
}
}