Support the ongoing development of Laravel.io →

4,604 Threads

Save data with relationship models

Here are my migrations Schema::create('technologicals', function (Blueprint $table) { $...

0 Likes
0 Replies

[4.2] Persistence of the session later redirection

Hi guys, this is my first time i write here. I tried a lot of solutions to solve the problem i'll ex...

0 Likes
0 Replies

Converting raw sql query to laravel eloquent

Hi everybody, This is my first question to any forum ever, so please excuse me for any mistakes. I a...

0 Likes
1 Replies

Trying to get property of non-object Error

Hello, i have this error ErrorException in f464710e74e7c0526bc0688fb16d954a0df3c98d.php line 10: Try...

0 Likes
6 Replies

how to get the user id in faker

while created faker how to get the user_id for the post? for example: i've created a faker for User...

0 Likes
1 Replies

Link users table to stations table via user_stations

I'm totally confused how to do this with eloquent relationships. I think logically I understand how...

0 Likes
0 Replies

Eloquent Count subscribe by day

Hello, I search to count subscriber by day with Eloquent. Have you got the solution with a code? Fri...

0 Likes
0 Replies

to make tracing log of all sql statements

Hi, If there is a way in laravel 5.4 to make tracing log of all sql statements? I mean Barryvdh\D...

0 Likes
0 Replies

eloquent relations

I have two tables one is templates and the other is template_images Showing migration of the two tab...

0 Likes
1 Replies
Solved

MySQL Empty User Won't Connect to DB

Hello! I am new to Laravel and I spent the last 6 hours trying to get my application to connect to M...

0 Likes
4 Replies
Solved

Laravel mongodb JSON data

DB::connection('mongodb') ->collection('XXXXXXXX') ->get(); [{"_id":{"$oid"...

0 Likes
0 Replies

Advice for images storing

Hello I am building a website (front-end and back-end) where I have a section that have an image and...

0 Likes
0 Replies

Update unique field Laravel 5.4????

I can not update unique field public function rules() { return [ 'nickname'...

0 Likes
0 Replies

Sorting with Jquery UI

I'm trying to sort with Jquery UI in Laravel and it's giving me fits. Here is my controller: public...

0 Likes
0 Replies
posted 7 years ago

Carbon date error

Hello, I'm doing a project for my school and I'm stuck in this problem ... I have the schedule done...

0 Likes
0 Replies

updateOrCreate problem

Hi, I've just discover this fantastic function. But I have a little problem. I need to update a fiel...

0 Likes
0 Replies

Tutorial Laravel 5.x create a simple web app

I'm newbie. I want to create a simple web app (ex: a forum only have home page and post pages, in ea...

0 Likes
1 Replies
Solved

How should I name an Eloquent polymorphic table?

I am using Laravel eloquent to design my database. Eloquent has a naming convention for naming a man...

0 Likes
1 Replies
Solved

Laravel selectRaw returns NULL

Here is my simple query Pin::where('updated_at', '>=', '2015-01-01') ->selectRaw(&...

0 Likes
1 Replies

Query Builder

Can somebody help me, This My query for My Table $results = DB::table('offer') ->select(DB::r...

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.