Question: is DB session different in that way than file storing?

Asked By
marko.dupor
Asked At
2017-12-13 10:49:44

Found 15 possible answers.

User Answered At Possible Answer
nick064 2017-12-13 10:49:53 @marko.dupor https://laracasts.com/discuss/channels/laravel/share-session-from-multiple-domains-but-on-same-server?page=2 the file driver creates session files in framework/sessions
marko.dupor 2017-12-13 10:58:17 I know because subdomain creates a new session I have issue with sharing the session which is stored and DB creates them in DB :slightly_smiling_face:
theatrain 2017-12-13 11:09:14 hi, i want to create a db record for every email that goes out and then utilise web hooks from the mail service to update the db record with sent/bounced etc.. to do this i need to store the id returned by the mail service api. Using the mailgun provider as an example how would i do this? Looking at the source code it doesn’t look like the api return value is assigned anywhere.
abiodunquadriadekunle 2017-12-13 11:21:18 How can i get a profile of logged in user in my application in laravel from the homepage or other pages, I used Auth::guard('gueadname')->check() to check if the user if is logged, but how can i get the profile of the logged in user i have tried auth()->user()->firstname and Auth::user()->firstname but i still cant get it please help
jleroux99 2017-12-13 11:28:12 Auth :: guard('guardname')->user() should work with that custom guard. Does your model have a firstname field?
abiodunquadriadekunle 2017-12-13 11:36:52 yes it works, thanks man
frozendroid 2017-12-13 12:35:10 Anyone know how I can get ide-helper to generate comments for Resource classes? $model = $this;
 but that seems lame
Currently doing 
/** @var MachineRecord $model */ Otherwise, how do I put a phpdoc so that my IDE understands that the resource class shares the model's $this?
brianforan95 2017-12-13 13:07:01 what is the return type of the old() helper when it has data? i would test it with a dump but everything on my page is currently breaking when i try
dennis55121 2017-12-13 13:12:55 Hello i have a dump question for you guys :stuck_out_tongue: If you try to Auth::login() many times without Auth::logout() will this trigger any kind of exception ?
granden 2017-12-13 13:13:11 How do I retrive an enviorment variable in a middleware? getenv is not working in a middleware.
jordyvd 2017-12-13 13:13:24 @dennis55121 No. @frozendroid It returns whatever was in your .$request->input('')
brianforan95 2017-12-13 13:13:55 think you meant me
dennis55121 2017-12-13 13:14:06 @granden you can t. You should put your variable in config and retrieve from config
jordyvd 2017-12-13 13:14:17 The no was regarding auth login error.
granden 2017-12-13 13:14:29 @dennis55121 Ok. Thank

Related Questions