How can I use globals in methods?
I know that in views we can type for instance {{url}} and url of website will appear. :)
PHP uses a global keyword.
public function method() { global $variable; }
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community