Your ROOT_URL in app.ini is http://159.89.207.79:3000/ but you are visiting http://9.cron.my.id:3000/tribikram/AplusAgency/src/commit/4104d067dbea2863c2dcbc6e10e8f80f32014300/app/Http/Controllers/NewsController.php
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
<?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'));
|
|
}
|
|
}
|
|
|