Category "laravel"

$ref "#/components/responses/" not found for @OA\Response(response=200)

I am trying to implement openAPI documentation in a Laravel project. I am using darkaonline/l5-swagger package, which is built on top of swagger-php to generate

How to report ModelNotFoundException with stacktrace to Sentry.io in Laravel 6?

I am using below laravel 6 code to report exceptions to Sentry.io: public function report(Exception $exception) { if ($this->shouldReport($exception) &am

Text blur on print laravel invoice package which is based on DOMPDF

Hi I have created a pdf with Laravel invoice package now the pdf showing in the display is fine but when printing that document fonts get blurred anyone please

Memory leak when using Http facade with Laravel Octane

Does anyone have idea why is memory going up for every request when I'm using Http facade with Laravel Octane ? Route::get('test', function () { Http::get('http

Laravel custom validator returns page instead of json

I made a controller to store tasks, it looks like: public function store(StoreTaskRequest $request) { $validated = $request->validated();

How to transfer a variable from 1 function to another in the controller?

It is not possible to transfer data from one controller to another. There is such a controller for filling mp3 files via Dropzone.JS: public function upload(Req

Can't store Files in public folder in Laravel 8

i'm trying to store pdf, txt... in DB but i get this error: Method Illuminate\Validation\Validator::validateCsv,txt,xlx,xls,pdf does not exist. but when i add r

Upgrading laravel into 8 I got illuminate/support support?

I try to upgrade my laravel 8 as I read here https://laravel.com/docs/9.x/upgrade But after I applyid some changes in composer.json I got error : $ composer up

Have error Livewire encountered corrupt data

I'm using extends in Laravel Livewire. It can display, but when I want to add or change data, I got an error. Livewire encountered corrupt data when trying to

laravel create not send data

Basically when i use keycodes::create($data); nothing happens and by nothing i mean nothing gets created Model: use HasFactory; protected $table = 'keycodes';

Laravel 9 dynamic Email configurations

I am coming to you with a problem to which I couldn't find a solution on google after hours of googling. I want to be able to send emails by using different SMT

Illuminate\Contracts\Container\BindingResolutionException - Target class [CommandMakeCommand] does not exist

Using Laravel 8.75 and trying to upgrade to php 8.1 in composer.json to "php": "^8.1" and receive the error of Illuminate\Contracts\Container\BindingResolutionE

Laravel Vue.js API: axios, FormData() is empty

I'm trying to update some data in Model using API in Laravel and Vue.js but I can't do this because FormData() is empty, I'm checking the data from formdata us

Laravel: Feature test json validations unique rule issue

I recently started implementing the unit testing in Laravel 9.x framework. So far, I was able to write some basic rules without any complications. However, in m

How to check authorization before loading Route Model Binding

I ask this question after doing various searches without finding any clarifying information that helps me solve the problem that I am presenting. I have created

Laravel 9 - Passport custom api for Authorization

In my application, I am using Passport for Authentication. I have created a Password grant client for generating access tokens for our mobile and web app. Now I

How to Pass Multiple variables from partial view to multiple views laravel blade

I'm trying to access variables in different views. But I get the error variable undefined. I have tried as below @include('admin.layouts.vendorpartial',

Laravel Nova Card Options Missing Function

I was recently given a Laravel app that uses Nova and Vue in it - all three of which I've never worked with before, so apologies in advance if I ask something t

How to create a patient table from an existing role table in laravel

So i am lost and i hope someone can help me. I have a User model that has a name and email fields. A Role User model that has a many to many relationship where

Laravel application on Heroku, 419 page expired when try to login/register

I set up my Laravel 8+ application on Heroku.com. Almost everything works perfectly, but when I try to register/login I got the "419 | Page Expired" error. I am