Category "laravel"

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

Laravel TALL npm run dev --openssl-legacy-provider is not allowed in NODE_OPTIONS

I have just updated the npm packages of my Laravel project right at my MacOS system (I have been developing on Laravel Homestead since so long but npm didn't wo

When I use ngrok to load my Laravel app , it only displays basic html and no css

The website my groupmates and I are working on is only locally available on my laptop. I want them to be able to open the website from their own homes, so that

Laravel 9: Custom login

I am trying to change the default table that laravel 9 uses to authenticate the users. But while I can see that user is authenticanted in the login function of

Axios getting blocked by laravel 7 cors. No "access-control-allow-origin-header"

I've a backend app working with Laravel 7 and a frontend which works with VueJs. My Laravel app is running on laradock (nginx, postgres etc...) Using Postman th

How to inject custom js to shopify via app

Hello I'm pretty new to shopify app development. I created the shopify app with laravel and now I generated a js file with content. What I want is to inject thi

Laravel 8 Multiple Relationships for Factory

In Laravel 8 it is possible to quickly fill relationships with factories. However, I cannot figure out how to generate more than one relationship. How can I cre

Getting Stripe Upcoming Invoice Line Items with Laravel Cashier

I'm attempting to use Laravel Cashier to retrieve line items of the client's upcoming invoice. I'm having difficulty obtaining the invoice in the first place.

Attempt to read property "degree" on null

i have created a profile where users can add their education fields. when there is no value in the database it throws an error. how can i get rid of this ? Atte

Laravel: Contract file is not instantiable while building Controller

I am trying to add a shopping cart function to my Laravel application. I installed darryldecode/laravelshoppingcart package from GitHub and have been following

Attempt to read property \"view\" on null when sending password reset email

I am trying to build password reset functionality but with a custom email template. So instead of returning the MailMessage from the notification I can sending

Call authenticate manually in router middleware

I created a CustomAuth middleware to use in routes to authenticate by "user_id" in request body or "Authentication" in request header. I need call Authenticate

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

I'm very confused, i try to find what's wrong but i don't find it.. In my SQL Database i've 'posts' table created all my code are related with 'posts' table and