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

37 lines
836 B

<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\ContactUs;
use App\Models\ContactDescription;
use App\Models\PersonalDetail;
use Illuminate\Support\Facades\Session;
use Mail;
class EnrollmentController extends Controller
{
protected $view = 'admin.enrollment.';
protected $redirect = 'admin/enrollments';
public function index()
{
$personal_details = PersonalDetail::paginate(config('custom.per_page'));
return view($this->view.'index',compact('personal_details'));
}
public function show($id)
{
$personal_detail = new PersonalDetail();
$personal_detail = $personal_detail->findorfail($id);
return view($this->view . 'show', compact('personal_detail'));
}
}