Global variable return null in laravel 5.7
Hi guys. I am using laravel 5.7 and in my controller.
public function index()
$this->x = 22;
public function other_index()
When I call other_index() function variable x return null. How to fix it?
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!