Category "laravel"

Attempt to read property "nama_jabatan" on int - Laravel 8

I have 4 models for my project. Karyawan Role Jabatan Divisi This is how I call the view: https://codeshare.io/xvYz4B and this is my model view on Karyawan: &l

Laravel merge image by path to Request for validation

I'm very new to Laravel. I'm trying to integrate temporary image upload to my forms. What I want to do. When the user selects a image the image gets uploaded te

Laravel Lighthouse-PHP GraphQL (Server cannot be reached)

I'm using Laravel - Lighthouse-PHP GraphQL server, and when I deploy it to production, I have to write public in the URL in order to work: https://example.com/g

How with faker to get text without ending “.”?

When in laravel 9 app I set value for text field with faker : $this->faker->unique()->text(25); I see text for field ending with “.”. How

How to covert youtube link into embed link in Laravel and validate that field should contain only youtube link

<!DOCTYPE html> <html> <body> <h2>HTML Forms</h2> <form action=""> <label for="fname">You tube link1:</label>

How to set filename mask in PhpStorm search to exclude Blade files

In my regular Laravel project I have both regular .php files with classes and .blade.php files for the templates of my project. When searching in PHPStorm with

How to filter all fields data by one time without auto using button in lara classifer(Laravel,php)

Guys i'm currently working with lara classifer project and filtering method filter data when we select each radio button or dropdown.I want to make a button tha

How to filter User by role based on the called Model?

I'm using Laratrust to manage these roles: Patient Doctor I've a class called User which is the main entity, then I have a specific class for each role: Patient

how to add code to service provider by artisan command

i created an Artisan Command that created Repository. A Repository File and an Interface. when user run below command, this files will be generated. php artisan

Addition of function to create banner on management screen

I have a site built with Laravel, and I would like to add the function to create a banner to be placed on that site to the management screen. The requirements a

Spatie laravel-backup giving undesired file structure inside the output zip

I installed spatie/laravel-backup version 6.16 and haven't changed anything inside the backup.php file. When I do php artisan backup:run I got the timestamp zip

Nuxt image keeps breaking on page change

I have image displayed on my Nuxt page but anytime I navigate away from it back the image breaks and I do not know why. I have this in my code <img :src="bas

Difference between save, fill, create in laravel eloquent

So i am new to laravel, I don't know the difference between save, fill and create in laravel eloquent. can anybody describe it?

updateOrCreate Function in laravel

Code is fine and I'll double check my code but I didn't find anything wrong in my code. This doesn't update or insert address or new user data in any condition.

Laravel relationship HasMany

I keep multiple address records belonging to a user. but when i write with dd i can't access other table's data. Following my code: user Table id | name

Laravel chat app : Unable to deliver messages to a specific user

I have been trying to develop a chat app on Laravel with socket.io. Now, I am facing problem that is when a user is sending a message to a specific user, the me

Laravel backpack fields - select_from_array functionality

I am using laravel backpack. Have created a new Request form. Have created several fields to choose from using 'select_from_array': $this->crud->field('ra

dynamic select2 options depending on other select's selected option

I have the following select <select class="form-control" id="from-location" name="from-location"> <option value="1">Inventory 1</option&g

Larael/Vue/JS minimalize/lost focus/changed card alert

Im coding web page and i need to know when user minimalize window/ lost focus on window/ changed card in browser. Is there any function which can give me that i

Message: Trying to access array offset on value of type int

How to resolve this issues: Trying to access array offset on value of type int? PHP8 public function processPayment(Request $request) { $orders