Category "laravel"

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

Specify the order of scripts in Laravel Mix

I'm trying to combine two JS scripts into one file. One is a third-party library, and the other is some custom js. No matter how I specify the scripts in the mi

How to install PHP composer inside a docker container

I try to work out a way to create a dev environment using docker and laravel. I have the following dockerfile: FROM php:7.1.3-fpm RUN apt-get update &&am

Error Class "Laravel\Fortify\Features" not found

I have ecommerce laravel application. Laravel Framework 8.83.8 PHP v8.0.1 I have done php artisan config:cache php artisan route:cache php artisan view:cache

MySQL upgrade causing unexpected results on simple WHERE clauses

I'm upgrading my Laravel app to use MySQL 8.0.23 from 8.0.20, and I see an issue with WHERE clauses that produce unexpected results. SELECT * FROM guilds W

What will the best solution for this multiple optional filter?

These are all optional fields, so will I have to write multiple queries with conditions or is there any way to handle this using Laravel? What will be the query

Can´t fetch data from laravel api by react JS - status of 419 (unknown status), postman working

I am trying to get data from laravel api by fetching it. In postman it`s working even with authorization with sanctum. When I fetch with post method it gives: F

How to change the "Maximum execution time screen" on Laravel and show a custom message instead

My application has a complex script that when some type of error happens it exceeds the maximum execution time instead of returning the error, that It's okay fo

Laravel display validation error

I try use this code: @foreach($errors->all() as $error) <li>{!! $error !!}</li> @endforeac

Using spatie/media-library, how to rename a collection of uploaded files?

I would like to rename a collection of uploaded files, but when I use addAllMediaFromRequest() I can't retrieve information from the files. In this example; I

Laravel Carbon get start + end of last week?

I have laravel carbon for get start + end of current week : $startofcurrentweek =Carbon::now()->startOfWeek(); //2020-02-17 00:00:00 $endofcurrentweek =Carb

Laravel having column name in where clause static method

Recently I just realized that Laravel generates a static method with column name when joined in a where clause using camel case example $user = User::whereN

Laravel Blade checkbox not checked

I'm passing variables into the blade from controller. This is my code from controller: $offerConditionsData = Offercondition::where('offerId', $id)->where('

Symfony\Component\Debug\Exception\FatalErrorException Trait not found in Laravel project [closed]

I have create a new trait within my Laravel project, but it doesn't work. First I have created a folder called App\Traits and my trait filenam

Laravel Eloquent relationships with 3 Table

Laravel 3 Table table_user id name table_barang id iduser name statusbarang_id table_statusbarang id name My code UserModels: public function BarangModels()

Laravel relationship hasMany not working

I want to print the name of the user by finding it with 'finished_by' column where id of user is stored. but i get this error: Trying to get property 'name

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

I moved my project from desk to another. When I run php artisan it does not work. I tried to run composer update, but it returns the error Script @php a