Support the ongoing development of Laravel.io →

4,606 Threads

posted 10 years ago

Laravel return results based on user selection

I have the following HTML <input type="checkbox" name="symbols[]" value="...

0 Likes
8 Replies

hasmanyThrough through multiple tables that have "belongsToMany" in between???

QUESTION: How can i filter this that if i fetch "$user->subjects" i get all subjects to...

0 Likes
1 Replies

Eloquent ORM - Complex queries

Hello, I have the following query: DB::select("SELECT * FROM mod_dns_records WHERE (scheduled =...

0 Likes
0 Replies

how to extend Eloquent Builder

I am new to Laravel, and am migrating an existing app done in another framework. I want to extend th...

0 Likes
0 Replies
posted 10 years ago

Content to show depending on menu

I'm trying create a page that shows up content depending on the menu you select. So if I'm on the ro...

0 Likes
2 Replies
posted 10 years ago

MySQL Session Variables

Hi everybody! Where is the best place to set the environment variables? DB::statement("SET tmp_...

0 Likes
0 Replies

Model events on deleting not work

I need when deleting a record it will also create a deleted_by value. [company table] | name | creat...

0 Likes
6 Replies

Fetch Data from Database using Ajax in Bootstrap Modal

While Fetching data from database and displaying it on table rows, we use @foreach(). But what if th...

0 Likes
1 Replies

Database helpers

Hi guys! I am trying to figure out how to create a class that contains methods with commonly used qu...

0 Likes
0 Replies

Sequence of 2 tables

How do I query 2 different tables and yet sequentially display them to the user based on date of ins...

0 Likes
0 Replies

How to create migration to create Auto Increment Non Primary Column

i have tried to create biginteger column like Schema::create('person', function(Blueprint $table) {...

0 Likes
5 Replies

MAMP Connection to Sql server

I am wondering if anyone else has had this issue before, I am developing on OSX and using MAMP for m...

0 Likes
1 Replies

Lots of SQL queries when enabling pagination

Hi, I'm having a high number of SQL queries when I enable pagination in my view. I basically have co...

0 Likes
1 Replies
Solved

Eloquent Performance (Overwrite Getter?)

Hey there :) Even though I do know that there is quite some overhead using magic functions / eloquen...

0 Likes
0 Replies

Posting Data to multiple tables with a single form

I was hoping to get some ideas for posting data to multiple tables in mysql. For example. I want to...

0 Likes
2 Replies

Laravel 4 eloquent query returns an old database value instead of the updated one

I have a Book table that has a column for stocks count.For example the beginning stocks of a certain...

0 Likes
1 Replies

Use Migrations While Developing?

I'm developing my first Laravel-based application from scratch, and designing as I go, so the databa...

0 Likes
3 Replies

Laravel 5 Testing - How can I run Artisan::call('migrate') ?

Hi there, I've tried to follow http://code.tutsplus.com/tutorials/testing-like-a-boss-in-laravel-mod...

0 Likes
1 Replies

Trouble working with many to many relationship

Hi, I have a many to many relationship set up between a Posts table and a Tags table with a post_tag...

0 Likes
2 Replies

Polymorphic Many To Many - 2 Locations, 1 Journey

Hi all, I'm looking for some help with this polymorphic conundrum... I have a Journey table: Journey...

0 Likes
1 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.