Category "laravel"

Laravel Sail after cloning from Git repository

I currently have my own Laravel application running on Docker using Laravel sail on Windows 11 using Ubuntu on WSL2. This works fine and as intended. I've pushe

unisharp laravel-filemanager Thumbnail url

Hi I'm using unisharp laravel-filemanager for user to upload their products photos when the image uploaded this address will save in database /photos/44/606074

Variable undefined error in laravel blade component view

Component InputError.php <?php namespace App\View\Components; use Illuminate\View\Component; class InputError extends Component { /** * Create a

InvalidArgumentException View [layouts.app] not found. Larave-8 LliveWire-2

When I change app.blade.php to base.blade.php I am having the following error. InvalidArgumentException View [layouts.app] not found. (View: D:\Code\my-app\ven

Valet is not working with php.8 Nginx return Bad Gateway

Hi I have try to update php to 8.0 but always there a problem with valet to read the new version and I try to solve it without specific instructions but this ti

While creating model with factory, migration and resource controller for api inside new repository, conflict encounters in migration as below:

Used Command: make:model Models/Test/TestApi -a Error: root@bb3433d4a92b:/var/www/nt-app-backend# php artisan make:model Models/Test/TestApi -a Model created su

PHP foreach loop on unknown depth multidimensional array

I have a multidimensional array consisting of a directory structure or a tree if you want, but how can I loop through this data when I don't know the depth of t

ChartJS Tooltip

I am using ChartJS on my project, I followed the integration as indicated on the ChartJS website. My problem is the following My error. I tried several things

Vue 3 Axios post call works but v-model lags a step behind?

I am using Vue.js 3, Laravel and Axios to make a simple post call: processFilters() { self = this; let tags = self.checkedTags.

When the file selected for upload, livewire component is automatically rendering

Is there any possibility to stop Livewire rendering on each click event? Actualy The issue is, if any event triggered from HTML or Javascript, then the render f

How to implement integration with a third-party API for example for a CRM system?

For example, I'm writing my CRM system in Laravel. This CRM system will collect orders from various online stores and marketplaces. One of the marketplaces prov

Do i have to put a foreign key relation to any column in a table with relation with another table? larvavel 8, Sql

I have multiple tables, and some do have columns which are related but I am not certain if I have to put the foreign key relations to all columns which are rela

Cannot connect to laravel-websocket CORS issue

I deployed my laravel application in GCP. I also set up SSL on my application https://myapp.com. It was working fine connecting to the pusher server. Then I s

how add image upload in TinyMCeditor laravel

i'm trying to upload images in between my blog content but when i select images from the gallery its shoes the error Route[/] not found, even though the route i

How to call the increment/decrement function on a nullable field | Laravel | increment | decrement function

I have an integer field, and the default value of the field is null. Migration Schema::table('servers', function (Blueprint $table) { $table->unsignedInt

Cron job not working in Elastic Beanstalk

I have deployed a laravel application in Elastic Beanstalk with Load Balancing. I have to backup my database daily and store it in s3 bucket so I am using Larav

What causes the data validation error in this Laravel API? [duplicate]

I am working on a registration form with Laravel 8 and Vue 3. The back-end is an API. In the users table migration file I have: class CreateUs

Laravel validation to make sure 2 values are not present at same time

I need to validate a request where if field1 is present, then field2 should be empty and vice versa. How can i achieve this in Laravel?

How can I access parent scope in laravel lighthouse relationship?

Laravel lighthouse doesn't access relationship scope like eloquent. class Tenant extends Model { public function products(): HasMany

How to include model attribute automatically?

I have the User model which define the following attribute: public function getAvatarUrlAttribute() { return 'https://i.pravatar.cc/300?u=' . $this->