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

users's avatar
Level 1

Using route.php code, if button is clicked

Order I wish: If user clicks this button. Then web/route.php code to be applied.

In this scenario :

Route::get ('customer', function () { $customer = App\Customer::first(); echo $customer->name; echo $customer->PersonID; });

If user would click button, then he could see what is in the store, because of MySQL.

0 likes
3 replies

Please or to participate in this conversation.