Category "laravel"

Laravel 9: Auth::user() / auth()->user() null after successfull login

I made a manual login system in a Laravel 9 API that it's works correctly, but when I try to use Auth::user() in another controller, I get it as null, but when

How to combine lines of code into one line?

I have 2 lines of code here but i want to combine all 2 lines into 1 // How to combine these 2 lines here $product = $this->productService->searchProduct(

ERROR LARAVEL EMAIL: Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 1

Greetings to the community! I have recently developed a web page with Laravel 9.X, which works correctly in local, but when I upload it to my Host, I am having

How to find data in other row with laravel-excel

I'm using maatwebsite/excel to import an excel file with laravel and save data to database In my excel file I have a column name "Ref" and an other name "toRef"

How to test a Laravel project for duration of requests

In a headless Laravel project we use unit and feature test. The unit and feature tests checks the input and output of the requests and the methodes but they won

ImageManagerStatic how to add copyright symbol on image

I am trying to add a copyright symbol onto an image with the ImageManagerStatic in Laravel, but it does not convert the code (©) to the symbol (©)...

Unit testing with get request

I am trying to create a unit test for one of my api. In the frontend, I send it this way... params = { participants: JSON.stringify(participants), secti

Does laravel sanctum only generate access_token?

I am trying to understand the basic flow of laravel sanctum in a SPA(vuejs) application. So far what I understood is: #It creates a middleware for API authentic

Laravel - Running Horizon in Google Cloud Run (via Docker)

I'm trying to set up laravel horizon to run on my google cloud (run) containers. I have gotten installed successfully, however when I navigate to the dashboard,

Vuejs + Laravel router redirection issue

After login, page should redirect on dashboard component and it does but then again redirect on laravel app url Route : I have used Vue Router const routes

Controller Target Class does not exist?

Im trying to follow a larval tutorial and make a controller. This is what I have so far and it works for the guy in the video but mine says controller not found

Laravel Excel Queue consume too much RAM

I have set up Laravel queue to read excel files using your Laravel excel and it works great for small files. But for large files (100+mb) and 400k+ records, it

Laravel Horizon internal server error on 'horizon/api/*'

I tried to implement Horizon, from the terminal when I run commands like php artisan horizon:status or php artisan horizon:list I get positive feedbacks, everyt

Laravel Backpack

I need help. I am currently working with Laravel backpack and I have the following problem: I have a field called Media, that field has two behaviors, one to up

ErrorException Trying to get property 'nom_service' of non-object [closed]

pls help I tried the maximum ways but no result, I'm beginner in laravel!!! liste.blade.php <td> {{$data->candidature->dem

Laravel model - CRUD only with records where one column = certain value?

Suppose i have a laravel model that works with a certain (MySQL) database table. Inside of this table there is a column named 'administration'. (example: could

Can I modify a failed Laravel (redis/horizon) job payload before retrying?

Locally, I use the database queue driver, but on production, we use Redis with Horizon. Recently, I noticed a job failed due to a tiny issue in the payload (a s

How to set compilerOptions.isCustomElement for VueJS 3 in Laravel project

I'm working on VueJS 3 inside Laravel project and I'm using a JS file which providing me with elements that I use for markdown toolbar. Basically it's a set of

Laravel Livewire Model set default value

I have a table that I am generating through an iterative loop. The issue is that there is an input field of type date. When I try to attach my livewire model, i

Trying to send data from query to another function

first i have two problem here the first problem when i run this query it gives me this Error //ERROR SQLSTATE[42S22]: Column not found: 1054 Unknown column '390