Support the ongoing development of Laravel.io →

4,604 Threads

defining a relationship on model when the relationship has foriegn keys on two tables

I have a table with a boolean column based on the boolean value. The boolean value true or false to...

0 Likes
0 Replies
posted 7 years ago

i have problem with migration when i use php artisan migrate show below error :

hi i have problem with migration when i use php artisan migrate show below error : windows command l...

0 Likes
1 Replies

Laravel 5.4: $this->route('table') doesn't work in Request validation rules

In Laravel 5.4 doesn't work $this->route('table') that I use when I want to editing data in table...

0 Likes
0 Replies

DB::select not return value as expected

Hi, I'm having problem to view data using db::select. Here is my full sql statement [Tested and retu...

0 Likes
2 Replies

No Chinese characters when i create a PDF

Hey guys, In Laravel 5.4 i am using TCPDF to generate a PDF with Data from Database. Very simple: It...

0 Likes
0 Replies

Laravel 5.4 Auth Scaffolding unknown issue.

I can register perfectly and it redirects with the cookie and tells me I'm logged in, but when I sig...

0 Likes
5 Replies

Problem when try to retrieve data from 1 table which depend on other table.

Im pretty new with laravel, can you guys help me to solve my problem, please. I have 5 tables: skill...

0 Likes
0 Replies

Multiple image upload in laravel using function.

here is the scenario, I need a table called product and another table called product_image and they...

jessicaervin liked this thread

1 Likes
1 Replies

Problems after change database host

Hi, I've changed my .env database configurations (host, etc). After that, config:cache and config:cl...

0 Likes
0 Replies

DB Migration for Reference Tables

I have some tables for enums that I want to store in the database. Is there a good way to handle thi...

0 Likes
1 Replies

failed: nofile when trying to download uploaded file laravel 5.4

please help me!!! i cant find a guide on laravel 5.4 in this error please if you guys have ideas on...

0 Likes
0 Replies

ErrorException in 33fb9f40de9c86527792aabe2edea085c0b7a479.php line 3: Undefined variable: rfq (View:

ErrorException in 33fb9f40de9c86527792aabe2edea085c0b7a479.php line 3: Undefined variable: rfq (View...

0 Likes
1 Replies

Get latest row s of table in model.

let's say the first record for adm_no: 1 , subject_id :1 and had a score of 35 and a second score fo...

0 Likes
0 Replies

Cashier BadMethodCallException Method newSubscription() does not exist, why?

Model <?php namespace App\Entities; use Laravel\Cashier\Billable; use Prettus\Repository\Contr...

0 Likes
5 Replies
Solved

Getting pivot id after attach()?

I am fairly new to laravel and I'm trying to build an 'add to basket' script. It consists of 3 table...

0 Likes
0 Replies

how to insert current login user -> userid using --resource controller? please help my thesis deadline

im using php artisan make:auth any ideas on how to insert the user id of the current login-ed user?...

0 Likes
4 Replies
Solved
0 Likes
0 Replies

how to insert my auth user id to my database upon submission?

hi guys i am new in laravel so please bear with me. im using laravel 5.4 what im trying to do is upo...

0 Likes
4 Replies

getting errer used in having or havingRaw

here is my code $products = DB::table('post_data') ->select('*') ->selectRaw('( 6371 * acos(...

0 Likes
0 Replies

If using a query builder as to what in the form of its laravel ?

Hi guys, I have a query like the following may be a bit complex, I am a bit of trouble to convert in...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.