Category "laravel"

Laravel and Passport getting SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token'

I've seen many posts about this error, but none of the solutions are working for me. I'm running Laravel with Passport which is working fine on my development s

Restrict Laravel API access to given frontend(s) only

I'm using Laravel as API with Passport and Password Grant Token. When no user is logged in, frontends still needs to access API routes to get misc data or to re

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"?

When I run composer install on command promp, there exist error like this : Problem 1 - Installation request for laravel/horizon v1.1.0 -> satisfiabl

Required field only if another field has a value, must be empty otherwise

My question is about Laravel validation rules. I have two inputs a and b. a is a select input with three possible values: x, y and z. I want to write this rule

Correctly redirect to another page with inertia?

I"m trying to redirect on click to another page, for some reason it's not working. This is the code on my vue where the redirect buttons are. I've tried two dif

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