Category "laravel"

I'm working at laravel project but there is always that error : ErrorException Creating default object from empty value

this is my candidatController.php the error is in the line before the last line($prev_canditure->etat="archifé";) $candidat_nw=Candidat::orderby('crea

I'm working at laravel project but there is always that error : ErrorException Creating default object from empty value

this is my candidatController.php the error is in the line before the last line($prev_canditure->etat="archifé";) $candidat_nw=Candidat::orderby('crea

How to edit picture on Coudinary with Laravel

Any Idea how to edit pictures on Cloudinary using Laravel API? I did a lot of searches, but I didn't find any references. The add worked successfully, but I did

Laravel Browsershot "node" not found

I got an error by using Browsershot in Laravel 8 (Laravel Code) $content = view('welcome')->render(); return Browsershot::html($content) ->noSandbox(

How to completely control Laravel Excel customValidationMessages output messages?

I am currently using Laravel Excel to import data from an excel file into database. When there are some errors occur, I'd like it to report in a foreign languag

Laravel stripe preview Invoice if the subscription has a scheduled transition

Logic of my subscriptions. If the transition from smaller to larger is smooth, I calculate proportionally. If there was a transition from a higher to a lower ta

Laravel - multiple select query

I want to pull data from two columns in my database table, I'm not very good at querying SQL. When I do this query I get this error: Expression #2 of SELECT lis

Fetch data from database where logged in user id exist in an column that stores ids as an array Laravel 8

I want to get the rows in a database where logged in user exists. Here is my structure Table = Meetings Column = Participants (stores an array of users eg.["1",

Laravel migration: using a native PHP enum

In PHP 8.1, native support for enums were introduced. How can I use them in a Laravel Migration? My first thought would be something like this, but it does not

Laravel mix compile progress stuck (WSL)

I'm not sure if there is an issue here but it's been bothering me for a while. Whenever I'm using Laravel mix the various progress bars never complete and there

why im getting this error Elements in iteration expect to have 'v-bind:key' directives

my code works perfectly but i still didnt manage to find out why am i getting this error message i looked it up and it seems that im missing. And another proble

I have some problems with the Login (Laravel)

I'm doing an application and I need to do a Login. I already do it, and it was working until yesterday, but today it stops work and I don't know why. I was sear

Join columns of Day, Month , Year to calculate age

public function patients_view($id) { $patient = Patients::where('id', '=', $id)->first(); // .... } I just need to view the age. Thanks , im usin

How to configure ngnix, vite and laravel for use with HMR via a reverse proxy?

I've only just got into Laravel/Vue3 so I'm working off the basics. However, I have an existing Docker ecosystem that I use for local dev and an nginx reverse p

Laravel Sail build failed on M1 mac

I'm trying to build the 'laravel.test' docker image on my new macbook pro with the M1 Pro chip, but I'm getting this error: => ERROR [ 5/12] RUN apt-get upda

How to prevent browser back button after successful login in Laravel?

I am having a problem applying custom middleware for not accessing the login route after successful login. Whenever I logged in a user if the user press the bro

Xdebug:Time-out connecting to debugging client

I am trying to setup xdebug using laravel sail with latest version, on my Ubuntu 20.04.3 LTS desktop, ie php 8.1 laravel 9 with below mentioned details to .env

how to use paginate in laravel

The following retrieves json data from the api and passed it to the loop to list and display the data gathered Controller code: class pagesController extends Co

$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