Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

348
Views
How i can solve Uncaught SyntaxError: Unexpected token '<' error

This is my route:

Route::delete('/projet/update/{id_projet}',[listProjetController::class,"edit"])->name('projet.edit');

and this my controller :

 public function edit($id)
 {
    $projet = projet::where('id_projet',$id)->first();           
    return view('chef_projet.projetUpdate',compact('projet'));                  
 }

but css and javascript do not work in my view, the error looks like this : console error log

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

You need to change your method in controller as

public function edit($id_projet) { 
    $projet = projet::where('id_projet',$id_projet)->first();

    return view('chef_projet.projetUpdate',compact('projet'));
          
}
about 4 years ago · Juan Pablo Isaza Report

0

In route you are passing $id_project and in fuction u r getting $id which it cant find thats why its giving error

public function edit($id_projet){
$projet = projet::where('id_projet',$id_projet)->first();           
return view('chef_projet.projetUpdate',compact('projet'));}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!