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/c3b6a866fb782ca03770952920dff657f2bc0d13/app/Http/Controllers/Admin/ApplicantController.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 

27 lines
656 B

<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Models\Applicant;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class ApplicantController extends Controller
{
protected $view='admin.applicant.';
protected $redirect='admin/applicants';
public function index(){
$settings=Applicant::paginate(config('custom.per_page'));
return view($this->view.'index',compact('settings'));
}
public function show($id){
$applicants = Applicant::findorfail($id);
return view($this->view.'show',compact('applicants'));
}
}