bipin
1 year ago

how to access variable of one function into another

Posted 1 year ago by bipin

hello guys i want to pass variable of one function into another but don't know how i can do need help

     public function 1(Request $req){
       $variable="demo string";
      reutrn view('admin');
       }
    public function 2(Request $req){
     //how i can access $variable value in this function
       }

Please sign in or create an account to participate in this conversation.