Category "laravel"

set mail driver dynamically from database for different email in notification

I want to set the following setting dynamically before I notify the user. MAIL_DRIVER= MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_SENDER_EMAIL= M

Laravel Pagination links() not working

After doing this in my controller $activities = Package::where('attraction',1) ->where('hotel', 0) ->where('flight', 0)

Guzzle Not Sending Grant Type to Laravel Passport

Im a little stumped with my code, I am running Laravel 6 with Guzzle Http Client version 6.3.3. I have opted to use a trait which I use on my API Gateway for c

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

I have a belongsTo field on the selection of which i want to show/hide another field using nova dependency container. But it only allows to give id in the depen

Image upload not working through ajax Laravel

Having a weird issue and I'm sure it's got something to do with the way my script is grabbing the value of the file input field. I know the controller function

Laravel + phpunit + github actions = Failed asserting that '1' is identical to 1

I'm trying to make CI pipeline and run phpunit tests via GitHub actions. First of all: tests work fine on my local machine (mac os). Then, when I do git push my

Sending Email using Outlook / Office365 with Laravel - Failed to authenticate on SMTP server

I'm trying to send an email with our Laravel app using Office365/Outlook. It has worked well with gmail but when I switched over to Office365, the following err

npm permission issue in laravel docker setup

If I try and run the following in my docker setup docker-compose run --rm npm run dev I get the following error > dev > npm run development glob err

Trouble to send multiple attachment mail in laravel

Here is my controller code. $fileArray=$request->multiple_file; $data['name']="custom size mail"; $message='ok message'; Mail::send('emails

Add and update products to session cart in Laravel

I am building a shopping cart for guests with sessions in laravel. I can add one product with quantity to the session variable 'cart.' However, when I add the s

ERROR!!! Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table

I ran into an error and I have not figured out how to resolve it alone. so I opted to get help from this community. I will explain a bit though the screenshots

laravel livewire pre selected multiple checkbox get and update value

Basically, I am trying to make a multistep form like google forms and using livewire. By saving each single page data on next click. on some page, I am trying t

How can i send a laravel email with SMTP without getting the .env data?

I need to fetch the SMTP data in the account of user that will be saved in the database. That way it couldn't pull the data from the .env file. I'm using Larave

How to fix Invalid request (Unsupported SSL request)

I'm setting up my laravel application and every time I run php artisan serve, it starts a laravel development serve at localhost:8000. Bu when i open the locaho

Symfony process run throws exception - executing on command line works

I have an issue with generating PDF files using LaTeX. The solution is created with the Laravel framework (version 8). I installed a new "Windows 2019 Datacente

Laravel Collections. Is there some kind of assertStructure method?

I'm writing tests and I want to assert, that a returned collection has some specific structure. For asserting jsons I'm using assertJsonStructure() method on

Cookie-less Laravel sessions

We have a small quiz type functionality built in Laravel to be embedded in a site via an iframe served from a separate domain (to work around CMS limitations).

how to save pdf inside controller and pass pdf patch

pdf api -> https://github.com/barryvdh/laravel-dompdf I create some simple API, everyone who pass some data will recaive link to pdf file. The thing is, i

carbon generated datetime not stored correctly into the database

I have a tv_shows table where i'm trying to store the start and end datetime of each tv show. this is my migration: Schema::create('tv_shows', function (Bluepri

How to skip blank rows in maatwebsite-excel 3.1 for model-way import on Laravel

I'm working on laravel project with maatwebsite-exvel 3.1 to import excel file from file uploding method. This is my StudentsImport class. public function mode