skip to Main Content

How to read a parameter coming from the with method to the view in laravel

I have this route in web.php: Route::get('student/evaluation/{evaluation}', [EvaluationController::class, 'getEvaluationQuestions'])->middleware('auth')->name('student.questionsevaluation'); And in my controller I have this condition, where $questionWasCompleted is boolean if($questionWasCompleted){ return redirect()->route('student.questionsevaluation', $evaluation) ->with('message', 'Question answered.') ->with('question', $questionWasCompleted); } How can I get the value of $questionWasAnswered to…

VIEW QUESTION

Laravel – Too Few Arguements

I'm trying to setup a simple button to update a db column value when clicked. I can't seem to figure out why my route isn't getting passed my value however? HTML: <form method="post" action="{{ route('approveResturant') }}"> {{ csrf_field() }} <input…

VIEW QUESTION

Display a list in react consuming from API in Laravel

import Table from "react-bootstrap/Table"; import axios from "axios"; import { Link } from "react-router-dom"; import { useState, useEffect } from "react"; import Form from "react-bootstrap/Form"; import Button from "react-bootstrap/Button"; const endpoint = "http://localhost:8000/api"; const endpointAccount = "http://localhost:8000/api"; const OpportunityShow =…

VIEW QUESTION
Back To Top
Search