Support the ongoing development of Laravel.io →

4,587 Threads

posted 10 years ago

Services and database foreign keys

Does anyone know if you need to still maintain foreign key constraints in services? Say I have a use...

0 Likes
0 Replies

seeding from a different database?

just need an example on how to seed records from a different database. do i need to add the connecti...

0 Likes
1 Replies
Solved
posted 10 years ago

schema builder: deferred constraint checking

i need to insert bulk data into tables and defer foreign key constraint checking until transaction c...

0 Likes
4 Replies

Searching database via URL params

I have a need to search the database of my site based on a URL. Since i am not near my local server...

0 Likes
3 Replies

Best way to work with mass update, insert and delete

I have form with hours (for every weekdays) and want: insert, update or delete row. Is there a bette...

0 Likes
1 Replies

Unable to call MySQL user defined function for laravel package bllim datatables

I have created a Mysql user defined function "calcVAT" to calculate some complex calculati...

0 Likes
0 Replies

Missing Class

I'm following the posts on the following thread: http://forumsarchive.laravel.io/viewtopic.php?id=15...

0 Likes
1 Replies

Eloquent - Advanced Wheres on Relations

Hey Guys, I'm trying to do grouped wheres ( like on SQL with the paranthesis) on Eloquent eager load...

0 Likes
1 Replies
Solved

run migrate Database using artisan (error)

Hello, I'm newbie in Laravel, when try to migrate Laravel 4 with table 'user' in database using arti...

0 Likes
0 Replies
posted 10 years ago

Group by multiple columns in Laravel

Hi all how to group by multiple column in Laravel? I tried this code $routes = DB::table('ro...

0 Likes
1 Replies

hasMany relationship not setting parent id and timestamp data when using insert

The author_id keeps coming up empty along with the timestramp data. How can I fix this? mysql posts...

0 Likes
1 Replies
Solved

Returning checked checkboxes based on pivot

Fairly new to MVC and Laravel. I am building a form that allows users (players) to be assigned to /...

0 Likes
1 Replies
Solved

Migrating tables and problems with foreign keys

I have created about 25 database tables in the migrations folder by first creating the files with ph...

0 Likes
2 Replies

Input "less than" character entity, stored as less than sign

I think Laravel can mangle character entities when storing into database. Has anyone else noticed th...

0 Likes
2 Replies

Trouble with Auth::attempt()

Hey everyone, I'm having trouble with auth::attempt() and I'm not quite sure what to google. In chr...

0 Likes
1 Replies

Handling 404 properly - best practice

My url is like domain.com/p/{id} when I insert a wrong ID i get error 500, how do i show error 404 n...

0 Likes
0 Replies

Can you use belongsToMany with non-primary-key fields?

I have the following tables users id email teams id teamlist id team_id email The reason there...

0 Likes
2 Replies

Stuck on this! How to stop these database hits?

Something was causing multiple calls to the User table. I found the solution on some blog that reco...

0 Likes
2 Replies

Custom database library

Hi, I'm new in Laravel and I'm thinking about Laravel for my project. Laravel is great, but for data...

0 Likes
2 Replies

Displaying Whats in a Pivot Table

if this is $items '$items = Item::with('brand', 'images')->get();', and i have this foreach @fore...

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.

© 2024 Laravel.io - All rights reserved.