How can I identify which método
is calling view
within itself?
Example:
IndexController.php
public function create() {
return view('index');
}
Inside the file view/index.blade.php
how do I return the method that called, in this example I want to return create
or create()
.