Category "laravel"

JSON Render Issue in Date Object Laravel and PHP 7.4

I am facing a stranger issue in php 7.4 inside Laravel. When I am trying to log the results using dd() function for any collection its gives me that my date fie

Laravel Json test with Bearer authentication

I'm writing a simple test to assert if an api endpoint response returns with 200 status. My api got Bearer authentication through sanctum middleware. My test fu

Laravel 9 Cannot find table - pivot table singular/plural issue

My understanding is that the naming convention for database tables in Laravel is to use plural names for regular tables, and singular names for pivot tables (do

Laravel insert dynamic input values with radio button

I am a beginner at Laravel, I want to insert a more dynamic address field to the database and I want to select one primary address using the radio button. I can

Login if user is active using Laravel Breeze

I've changed it in the LoginRequest.php file at authenticate function, but it doesn't work. if (! Auth::attempt($this->only('email', 'password', ['active' =&

Job stay in pending list after processed

I am running Laravel 8, horizon 5.4 After I initiate the job, it processes successfully as it should, but in the Horizon dashboard it stays pending list, it doe

How to export all rows using Export Buttons of Backpack Laravel?

I'm looking to export all rows of users table using the export button of Backpack in Laravel. Currently the export button only exports the lignes of 10 rows sho

Laravel Vapor file upload fails

Following the Laravel Vapor documentation for file uploads (https://docs.vapor.build/1.0/resources/storage.html#file-uploads), I'm encountering the following er

Laravel Fortify not triggering 2FA challenge?

I've used Laravel Fortify to write some authentication for my app and I've setup the enable part of the 2FA, and that all works fine, but the problem I'm having

Use environment variables in Laravel Nova

I am trying to follow: https://laravel.com/docs/9.x/mix#environment-variables My project setup is Laravel Framework 8.4 Php 7.4 Laravel Nova 3.0 .vue file in /n

How to render html from a @foreach loop in a textarea

Using Laravel 8 livewire, I need to render a list of name ($list) on per line in a textarea. I do this <div class=" border border-red-800 rounded-lg mt-8 p-4

getting null values from the collection

I have an array that comes from an API request that has the stucture below. ^ array:40 [ "id" => 2 ... "categories" => array:2 [ "data" => ar

Product varient size validation on Add to card in laravel

I'm using Laravel and I'm struggling a little bit with Add to cart button validation. The scenario is: if user want to Add to cart to cart is not added without

Laravel/Livewire display data on table if today is between 2 dates

I'm trying to populate my table with data if today is between posting date and closing date. public function mount(Career $career) { $this->today

How To Access A Column In M-M Relationship Table In Laravel

I made a many-to-many relationship in laravel, where users can make announcements on an event. The problem is that I want to retrieve the announcement message f

How can I make condition for class of x-jet-dialog-modal?

With laravel 8.68 and livewire 2.7 opening modal dialog (which can be used in many cases) I want to change background color/color depending on parameter. I try

Laravel ajax auto populate field based on selection

I am working to solve an ajax issue I have where I am trying to auto populate an amount field based on the selection from the drop down box. My table is layout

Mailhog is not working in Laravel 8.x + Sail

I'm using Sail with Laravel 8.x I set it up and it's working perfectly. However, as said here in the Doc, I'm supposed to be able to access the MailHog web inte

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

I am facing the issue while setup the Akaunting application. I cloned this repo from GITHUB source 1: https://github.com/akaunting/akaunting. I followed all the

Laravel 5.5 won't render email with PHP 7.4

I am trying to render an email in Laravel 5.5, but no matter what I do, I get the following error on render: ErrorException (E_NOTICE) Trying to access array o