Category "laravel"

Laravel Scout/Meilisearch - filter by a non-searchable column

I want to make it so that I can filter results based on a column that isn't searchable with Meilisearch and Laravel scout. So imagine a "Comment" table, with th

Laravel Livewire: jQuery not working in child component loaded via @if statement

I'm using Laravel 8 and PHP 8 and livewire 2. I have a Fullpage Livewire component. I have a button, to toggle a simple flag between false and true. <Button

Webscraping Symfony/Panther: Can't get HTML

I want to scrape a site with the symfony panther package within a Laravel application. According to the documentation https://github.com/symfony/panther#a-polym

How to make changes to Spark Laravel Billing page?

I am trying to make changes to the Spark Laravel BillingPortal.vue page. After making a change I know the the app.js is being compiled but I see no change in th

Create a new instance of a Laravel model with children models

At the moment, whenever I need to create a new instance of a Laravel model that has child models, I need to create the model in the controller, then loop over a

Laravel - 403 invalid signature on email verification

I have enabled Email verification on my laravel site. If they dont do it immediatly, but after a day or two, the link times out.. and they land on a page with

Laravel phpunit test failing authorization

I have a working api only application. I am required to write a test decided to use laravel's phpunit test. This simple app allows only authenticated users ca

How do I set the default document of an Azure App Service when it exists in a subdirectory?

I am deploying an Azure App Service from Azure DevOps via a release pipeline that is configured to perform an Azure App Service Deploy task on my build agent. T

Access relation of pivot table in Laravel

I have three models Bill, Product and Process. Bill has a ManyToMany relationship with Product and the pivot table have some extra fields. I write the Bill mode

Laravel PackageManifest.php: Undefined index: name

I'm just trying to deploy my application and I just ran composer update on my server and I got the following error: In PackageManifest.php line 122: Undefined

Error with creating a laravel foreign key

I'm trying to create a relational database and this is the error i get SQLSTATE[HY000]: General error: 1005 Can't create table somedumbtable.meals (errno: 150

CSRF token is not set when first accessing Laravel Application on shared hosting (419 Page Expired)

I deployed my laravel application in a shared hosting system and the application works fine, but every time I open the website for the first time in a new brows

What is the point of X-CSRF-TOKEN or X-XSRF-TOKEN, why not just use a strict same site cookie?

Frameworks such as laravel and others require you place the csrf token in your HTML forms. However at the same time laravel comes by default with the VerifyCsrf

View laravel in heroku doesn't run correctly when first time deploy to heroku

im new to laravel. so i just try to deploy app to heroku but seem it dont work correctly but when i run local at 127.0.0.1:8000 it work fine i already put Pro

Laravel Inertia prop not passing values

When calling an edit function the prop mealService is passing null values and will not populate form fields with values. It looks like the controller isn't load

Laravel Delete and Update

I created a Post and a Get Request, Looks like this: public function getAllCustomer() { $customer = \App\model\Customer::get(); return $view = View::m

How to show selected value using javascript in laravel

i want to show the selected value to the select option, the value actually selected but cannot show that value on select option form. for example i have a 3 val

How to create custom authentication in laravel 8?

How to create custom authentication in laravel 8 with a preexisting table (but with table name Users_system not Users) and this table (Users_system) is full of

How fix "BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default" error?

I want use "web3" and "walletconnect/web3-provider" package on vue & laravel 8. I install it by npm i --save web3 @walletconnect/web3-provider command and a

Cannot connect to own websocket server when on secured domain

I deployed a standalone WebSocket server in google cloud. Following the laravel-websockets configuration, I can connect to my server when I go to <ip addres