Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Baskar04's avatar

assumed 'customer' (this will throw an Error in a future version of PHP)

Use of undefined constant customer - assumed 'customer' (this will throw an Error in a future version of PHP) (View: C:\xampp\htdocs\angular\lara-angular\resources\views\Index.blade.php)

0 likes
2 replies
Sinnbeck's avatar

You might have forgotten a $ in $customer

Show the code that is throwing the error

hupp's avatar

make sure you will be pass customer like

return view('customer',compact('customer'));
and inside the blade file you can access {{$customer}}

Please or to participate in this conversation.