skip to Main Content

Laravel Eloquent with MVC principles – PHP

I am quite new to laravel. Using Laravel 8. When saving data I have seen below method in many examples. In the controller $emp = new Employee(); $emp->emp_name = $request->emp_name; $emp->emp_no = $request->emp_no; $emp->email = $request->email; $emp->save(); My doubt is…

VIEW QUESTION

Display data from DB – Laravel

I need help in Laravel. I need to list all VIEWS from db. I have written this query in my Controller: $reports = DB::select("Select TABLE SCHEMA", TRIM('r_all_' FROM TABLE_NAME) as viewname FROM information_schema.tables WHERE TABLE_TYPE LIKE 'VIEW' AND table_schema LIKE…

VIEW QUESTION

button onclick="window.location.href…" not redirecting to View in different folder – Html

<form> <div> <input for="IPMaquina" type="text" placeholder="IP da Máquina"> <button>Estado Máquina</button> <button type="button" onclick="window.location.href='JCash_SubPages/VNEconfig';" style="text-decoration: none; color: black;">Configuração</button> </div> For some reason the onclick action won't redirect to the VNEconfig View and leads to a 404 Error If I move it…

VIEW QUESTION
Back To Top
Search