Skip to main content
3 votes
2 answers
89 views

I have a ProductLandedCost model with a morphToMany relationship to various other models: Warehouse, for example: class Warehouse extends Model { // ... public function productLandedCosts(): ...
Aaron Dunigan AtLee's user avatar
0 votes
1 answer
59 views

I am trying to update data with where condition. I am trying to get the where condition of update statement from the select statement. But in this case the data is not updated. public function update(...
user4221591's user avatar
  • 2,236
2 votes
0 answers
121 views

I have a fresh Laravel 10 app and I'm trying to test queues. I created a job with php artisan make:job TestJob. routes/web.php Route::get('/test-job', function () { \App\Jobs\TestJob::dispatch(); ...
S. Narthanan's user avatar
2 votes
0 answers
104 views

I’m working on a Laravel 10 project and ran into a Class not found error when executing an artisan command. Goal: I want to create a custom artisan command that fetches data from the database. Problem:...
S. Narthanan's user avatar
-1 votes
1 answer
163 views

In screenshot below i have a set of data insertion which contains each parent might have o to 6 children : when i try to get data in my livewire blade (the part facing issue) like below: <div ...
moh89's user avatar
  • 82
-2 votes
2 answers
132 views

I am returning json response from index method of my controller class. use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Admin\Services\Finish; class FinishController ...
nischalinn's user avatar
  • 1,284
0 votes
4 answers
179 views

I am trying to call a controller method using ajax. But I do not know how to do it? I have tried several ways but can not find the right one. My controller method:: use App\Http\Controllers\Controller;...
nischalinn's user avatar
  • 1,284
0 votes
1 answer
118 views

I have a dropdown list, here in the option I want to load image also. I took reference from: i want to display image in select option dynamically but not working But the image is not loading. The path ...
nischalinn's user avatar
  • 1,284
-1 votes
1 answer
69 views

I have a controller method which I am using to change the status of the row data in the database. But I forget to mention status field in the model file. So the status was not changing in the database....
nischalinn's user avatar
  • 1,284
0 votes
2 answers
65 views

I have 10 items in my database table. I want to apply same CSS style to the divs in the arithmetic sequence of 3 items. For example, items [0, 3,6,9] will have CSS style slideInDown, items [1,4,7] ...
user4221591's user avatar
  • 2,236
2 votes
2 answers
127 views

Telescope Version : 5.10 Laravel Version : 10.48.29 PHP Version : 8.3.11 Issue Laravel runs in a subfolder. This means only urls starting with /foo/ get routed to Laravel's index.php. Other ...
Arun ov's user avatar
  • 73
0 votes
1 answer
34 views

working with Laravel 10 backend and I have following dropdown for select zone name and existing system show some zone name from table. but I need show --select zone-- as the default value of the ...
Matakoththuwakoni's user avatar
0 votes
1 answer
97 views

I created an helper class that wraps http calls to an external service using the Http facade: all the methods basically wraps the same http call structure: Http::withHeaders()->post() or get() ...
fudo's user avatar
  • 3,034
2 votes
1 answer
160 views

I'm building a Laravel app where the main layout (layouts.app) is used across all pages. However, I include the header (which contains the user dropdown based on Auth::user()) via a separate @include('...
Dynamic Duniya's user avatar
0 votes
1 answer
73 views

I'm new to Laravel. I'm trying to use HasTo relationship. I have 2 tables in database. One is the products and the other one is categories. I use a form to add a product. In the form there is a select ...
mbaysal's user avatar
  • 23

15 30 50 per page
1
2 3 4 5
62