When you try and open that page, keep you network tab on the developer toolbar (F12) open.
Are you getting a 404, a 500, or a 200 response ?
note: You should not be using $_GET within laravel, use $request->person_type instead.
this is my code:
public function valuepass(Request $request)
{
$person_type = $_GET['person_type'];
$company_id = $_GET['company_id'];
dump($person_type);
$allentryfields = DB::table('fields')
->where([['fields.company_id',$company_id],['fields.person_type', $person_type]])
->join('field_types','fields.field_type_id','=','field_types.id')
->select('fields.id as field_id','fields.field_name as field_name','field_types.type_name as type_name')
->get();
return view('admin.academicuser.createuser',compact('allentryfields'));
}
here the method 'valuepass' is getting two variable named person_type and company_id, along with this I want to change my view page, for this I have used "return view", there is no error and the button which onclick function return this valuepass method, also access on the view page, which I have checked in the web-network section. But problem is, the view page is not loading in the address-bar,
this is my route:
Route::get('acamedicpersonentry/{company_id} /{person_type}','AcademicUserEntryController@valuepass');
how, can I solve this?
I have also tried this one:
public function valuepass(Request $request)
{
$person_type = $_GET['person_type'];
$company_id = $_GET['company_id'];
dump($person_type);
$allentryfields = DB::table('fields')
->where([['fields.company_id',$company_id],['fields.person_type', $person_type]])
->join('field_types','fields.field_type_id','=','field_types.id')
->select('fields.id as field_id','fields.field_name as field_name','field_types.type_name as type_name')
->get();
// return View('admin.academicuser.createuser', array('allentryfields' => $allentryfields));
//return view('admin.academicuser.createuser',compact('allentryfields'));
//return Redirect::route('academicuser/createuser')->with('allentryfields', $allentryfields);
return redirect('academicuser/createuser')->with('allentryfields', $allentryfields);
// return $allentryfields;
}
public function index()
{
$allentryfields = session()->get( 'allentryfields' );
return view('admin.academicuser.createuser',compact('allentryfields'));
}
but, here is also the same problem, everything is okay but not loading in the address-bar, what could be the solution?
Please or to participate in this conversation.