@afoysal You don’t.
Service providers run on every application, including ones for console commands and queued jobs where there isn’t a request so there isn’t a session either. Your application is then going to break.
I told you this a week ago when you asked exactly the same question: https://laracasts.com/discuss/channels/laravel/sessionget-inside-boot-of-appserviceprovider?page=1&replyId=722275
Don’t re-post questions when you’ve already been given an answer and advice. It’s just rude.