Support the ongoing development of Laravel.io →

4,606 Threads

How to use 'belongsToMany' passing parent ID (pivot) to WHERE?

I have 3 models, ie: Country, User, Bike. Country has many User, User has many Bike, and bike can be...

0 Likes
1 Replies

Create categories

Hello, I would like to ask for examples or samples, how to create categories with many to many realt...

0 Likes
2 Replies
Solved

Migration cascade + foreignkey + index

This is my source code: public function up() { Schema::create('messa...

0 Likes
1 Replies
Solved

Getting data from a join in a view

In my controller I have: public function index() { $comments = Comment::pagi...

0 Likes
1 Replies

Beginner question - Trying to display articles containing the same category

First of all, sry for posting what is probably a stupid and an obviously easy to solve question. I'v...

0 Likes
5 Replies
Solved

Resizing images using Intervention

I am trying to manipulate images in Laravel using intervention. I have followed all the required set...

0 Likes
1 Replies
Solved

Validation: Unique-rule to check for emails with exceptions

For testing and support issues I´d like to allow one or two emails to be used multiple times in my u...

0 Likes
4 Replies

Unique validator with complex where logic

I'm writing a validator that verifies that an IP is unique. The complexity is that these are IP rang...

0 Likes
1 Replies
posted 10 years ago

Using query builder with Microsoft SQL?

Hello, I've been trying to get laravel to work with a Microsoft SQL Server. I've installed FreeTDS,...

0 Likes
2 Replies
Solved

Validation form with dynamic inputs

I have a form that has inputs that look like this {!! Form::text('event[]', $data->event, ['class...

0 Likes
1 Replies

Retrieving and storing data from a form checkbox using Laravel 5

Got an issue that I am struggling to solve in Laravel 5. So essentially what I am trying to do is ca...

0 Likes
2 Replies
Solved

Best way to create a web app with different users authenticated

I want to create a web app with Laravel 5 that require three different type of user authenticated: s...

0 Likes
5 Replies

Delete with all foreign keys

Hello, I have for example table with user, which can be owner of event or following event. So, there...

0 Likes
1 Replies
posted 10 years ago

Create table row when user register

I have table rows that I want to be created when user register just like users table does by default...

0 Likes
2 Replies
Solved

Large collection, many levels, getting views out

First, if anyone has a good tutorial on collections, I could use it. I have a collection coming from...

0 Likes
1 Replies
posted 10 years ago

Set default Carbon date format for database connection

Long story made short: my timestamps are coming from PostgreSQL in a different format than Laravel i...

0 Likes
1 Replies

hasOne and insert

Hello all, I have a device table created using this Schema::create('devices', function(Blueprint $ta...

0 Likes
1 Replies
Solved
posted 10 years ago

Issue with Schema Builder

I'm getting started with Laravel 5 by following the ToDo tutorial here. I also have the ide helper s...

0 Likes
6 Replies

Reduce db-queries while needing to continuously update data

Hi there! I build a script that can run through a user's requested daily meals, and automatically as...

0 Likes
0 Replies

How do I make limit the information retrieved by eloquent and stop crashes?

The following code, goes through the entire company database and cache's the lower level nested rela...

0 Likes
12 Replies
Solved

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.