Skip to content

Tag: laravel

Build csv and upload to google drive in php (laravel 5.8)

How do I send a response()->stream() to google drive ? I’m not getting it because this method returns a class and not a file. My question is if I will need to save locally using file_put_contents() so that I can then send it to google drive On google drive my file looks like this: Answer Try this

Laravel 8 Custom Login With Custom Model

Greetings to all I have a problem with my Laravel 8 code I’m getting “ErrorException Undefined index: password” from vendor/laravel/framework/src/Illuminate/Auth/EloquentUserProvider.php:159 I use custom model and I set up in config/auth.php to use my Client model not a User model and when I…

Laravel, search exact same substring in eloquent query

I have a table like this Teacher Table What I am trying to do is to get the row which contains the subjects 1(or any other number like 7,8 etc.) This is what I have tried in my controller. The problem here is that, I am getting all the rows which contains subjects as ‘1’,e.g. if it is ‘3,11,…