nhayder nhayder
40

Axios ajax call not working working on chrome but working safari

i'm struggling with this issue since a couple of hours now, on my app i'm requesting data from DB using axios ajax function. this is the js function on my store.js s...
Laravel
40
179
deshiloh deshiloh
30

Policy issues

Hi, i searched for a solution here before to post, but i didn't find the fix. i'm trying to add policies in my laravel application. I created UserPolic...
Laravel
30
210
Heimdall Heimdall
25

logic eloquent

Hello :) I have a probleme... i have 1 table dog, on the table we can see the name, old etc, and i have a other table for store the image of the dog. But, when i wan...
General
25
136
splendidkeen splendidkeen
19

Order paths by date and time, in component

Currently I am order paths by the date record on a path. A path also has a time record on its Model, which means I need to expand my working compu...
Vue
19
83
WallyJ WallyJ
18

Data not passing in Livewire Component

I receive this error using the following view and controller: Illuminate\Database\QueryException SQLSTATE[HY000]: General error: 1364 Field 'deal_id' doesn't have a...
Laravel
18
149
Teleogrid Teleogrid
17

Model Route Binding returns Collection instead of Model

Hi guys, I'm having a simple route that should do a simple model binding but instead of an instance of a model I get a collection returned. Here is what I am doing:...
Eloquent
17
129
tomasosho tomasosho
16

I want my form to be submitted after successful payment JS

I want my form to submit after a successful payment. it shouldn't load up automatically. <form action="####" name="myform" method=&quo...

flatting array not working

I have a string from the database that usually is something like this: 0,10,20,50,100,1000,30,55,90. I do this: $perfiles = collect(explode(',' , $Men...
General
15
96
hsntngr hsntngr
15

laravel strange 419 behavior

Whenever I try to send post request. It just works fine but sometimes it gives me 419 error. If I try couple times then its get fixed. What may cause of that kind of...
Laravel
15
75
Giogiosw Giogiosw
14

Set Lang with Cookie

Hello I have to set the language through the use of cookies but I have some problems I created the following code to set the Cookie and it works...
Laravel
14
327
PhoeniX5 PhoeniX5
14

laravel insert from another table without duplicates

I have been trying to find a solution for this for a few days, I need to find a suitable solution for this context : DB::table('table_1')->delete();...
Laravel
14
225
Pain12 Pain12
14

store function doesn't work

Hello guys, I am trying to store data in my Database. My Database looks like this: public function up() { Schema::create('posts', functi...
Laravel
14
138
Theldess Theldess
13

Too few arguments to function

Too few arguments to function App\Http\Controllers\DmhController::ajoutcot(), 0 passed and exactly 1 expected ..... This Route::get('/ajoutcot', '[email protected]...
Laravel
13
104
Heimdall Heimdall
13

Has many eloquent

Hello, i have 2 table ( images and chien ) chien = dog in english ^^ so on my table chien i want recover the image on my table image : So i do t...
General
13
67
Antoine_Herbert Antoine_Herbert
12

POST route

Hello all, Im a beginer on laravel and i wanted to know how could i do some post route. Thanks you...
Laravel
12
182
marcosdipaolo marcosdipaolo
12

FormRequest not generating error messages

When the validation fails i get nothing at the $errors variable, it used to work, but now it stopped and i have no idea why. I've tried several things, change the fields th...
Laravel
12
92
DalyMhy DalyMhy
12

Argument 1 passed to Illuminate\Database\Connection::prepareBindings() must be of the type array, null given

public function search(Request $request){ $search = $request->get('search'); $image = DB::select(produits.id,produits.name,categories.nam...
Laravel
12
50
noblemfd noblemfd
12

Recursive Select option dropdownlist

I have this model class Staff extends Model { protected $fillable = [ 'staff_code', 'manager_id', 'first_name', 'la...
Laravel
12
67
boill30 boill30
12

update stock where status = 3

public function updateStatus(Request $req, $id) { $data = PurchaseOrder::findOrFail($id); $data_d = PurchaseOrderDetail::where('purchase_order_id'...
Laravel
12
295
tenh tenh
12

all routs in web.php do not show

I want to see all routes so i use php artisan route:list. It shows all the routes from api.php but not web.php, why? All so all the routes that are in web.php they a...
Laravel
12
270
Create a New Discussion Button