Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Tagged with
0 votes
1 answer
30 views

Laravel Searchbar Function Returns Undefined Key

My laravel searchbar is returning Undefined Key. It is returning Undefined Key: 'Search' Here is the controller function: public function search() { $search = $_GET['search']; $...
tooManyDivs's user avatar
-1 votes
1 answer
574 views

Query the parent table from child table in laravel

I don't know if the term or title is right but here is what i want to achieve. I want to get the data of the parent from child table: lets say Location hasmany Store, and Store hasmany Products My ...
leouie tabique's user avatar
1 vote
3 answers
4k views

Maatwebsite Excel with Laravel 9 and PHP 8

I installed Maatwebsite with Laravel 9 and PHP 8 using this command composer require maatwebsite/excel:* . Then I got this notice at the end of the installation: I then register it in the config/app....
RIDWAN ADIO's user avatar
-2 votes
1 answer
3k views

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'male' in 'field list' laravel 9

to be honest idk what's wrong here in my code but i still receive this error i see all the solution here but nothing happen , is the problem in the type="radio"? i try to change it to type=&...
Rouidjel Adel's user avatar
0 votes
1 answer
149 views

how to make date & time inputs dynamic

i've form has 2 inputs date/time but its static i have an idea but don't know if its applicable or not. i want the 2 inputs have default now(); if the didn't change its value it stored to db with the ...
Karim Ali's user avatar
0 votes
1 answer
263 views

how to checked pre selected checkbox in vue

I have a tree view checkbox and if you edit this data while selected zone and there countries must be checked true based on the previous selection, selection data countries id come from DB (obj, obj) ...
Aamir Multani's user avatar
0 votes
1 answer
237 views

How to show the total on the last rows with same value? (Laravel)

I have table 'transaction_items' in my dtaabse that looks similar to this... id transaction_id qty unit_price 1 100 1 10.00 1 100 2 10.00 1 100 3 10.00 1 200 1 20.00 1 200 1 20.00 1 300 1 15.00 ...
JasonF's user avatar
  • 158
0 votes
0 answers
114 views

graph not displaying

When I run this in a blade.php file it return's a blank white page. I don't know my error can any one help me. or give any suggestion I am new to Laravel. graph.blade.php <html lang="en"&...
Kick B's user avatar
  • 23
0 votes
1 answer
70 views

I need to view the phone numbers of a specific contact

this is my controller: public function viewContacts(){ $contacts = Contact::with('number')->get(); return view('contacts.view_contacts')->with(compact('contacts')); } this is my view: ...
A.C.M. FONTAMARA Pescina's user avatar
1 vote
1 answer
738 views

Column not found: 1054 Unknown column 'MONTH(date)' in 'where clause' [duplicate]

i dont see what's my problem here, im just trying to get the month and the year from a date column in my DB, i was already using this query and it was working and now its not i really dont understand. ...
Xisco_G8's user avatar
0 votes
1 answer
63 views

SUM(value) as value SQL Query not working

so i have this functionin a clientPurchases class that selects the summation of value of a certain client on a certain month and year and returns it, if its empty returns 0. my error is that the ...
Xisco_G8's user avatar
-4 votes
1 answer
339 views

How to fix "Undefined property: stdClass::$gamme" [closed]

I am new in the Laravel this is my first app. I have 2 tables: art -id -code -designation -prix -qte -gamme_id gamme -id -type I have a relation between them artmodel gamme_model and I want to ...
Hassen's user avatar
  • 5
0 votes
0 answers
100 views

Insert into Select with laravel

Good afternoon. I'm trying to store the data that I retrieve from my query into a MySQL table. I'm trying with the "Insert into select". But I'm not having success with that. Here is my Controller ...
HAMA's user avatar
  • 1
0 votes
1 answer
41 views

Recover data from a select and send it to the database

I just started laravel recently and I have a problem. I have a 'select' in a 'form' and I would like to retrieve the selected data and save it in the database. Unfortunately, I have the impression ...
Killian Le Corre's user avatar
1 vote
3 answers
1k views

Sending data from Controller to View in Laravel 7

I want to send my data from controller to xedit.blade.php, but I get the same error: Undefined variable: users in controller: public function index3() { $users=User::all(); return ...
readJohn's user avatar
  • 173

15 30 50 per page