Support the ongoing development of Laravel.io →

4,587 Threads

Show binded sql

Hi; How can I see binded sql? $data = Admin::whereRaw('email = ? ', array($email))->get();

0 Likes
1 Replies

Foreign key columns without the '_id' suffix

I prefer using foreign key columns wihout any suffix (like 'user' rather than 'user_id'). I can live...

0 Likes
0 Replies

get column name when updated a record

hi everyone according to the question, i want to get column name when update a record. i need this i...

0 Likes
0 Replies

Insert Ignore

I'm looking for the best approach to add an InsertIgnore method to Laravel's query builder. I can ac...

0 Likes
0 Replies

Relationship for match schedules table

Hy all, I'm quite a beginner with Laravel and trying to build a website for the world cup 2014 in Br...

0 Likes
1 Replies
posted 10 years ago

Slow remote database connection

The website that is connected to a remote database is running slow, any tips/advice how this can be...

0 Likes
6 Replies

Create multiple objects at once

Hi community, I want to create multiple objects with a single click, I want to be able to create a G...

0 Likes
1 Replies
Solved

Display div on condition

I have the Users and Items tables on a many-to-many relationship and what im trying to do is only di...

0 Likes
1 Replies

Session doesn't keep payload

$cookie = Session::put('test','selected'); $test = Session::get('test'); dd($test); I'm getting sele...

0 Likes
0 Replies

Pagination Data not Consistant

<?php echo $users->appends(array('sort' => 'votes'))->links(); ?> I do a GET form sub...

0 Likes
0 Replies

Cookie not Displaying

$cookie = Cookie::forever('test','selected') $test = Cookie::get('test'); dd($test); I'm getting NUL...

0 Likes
0 Replies

How to Setup Laravel Eloquent in Zend Framework 2?

My current project force me to use zend framework. However, i'm familiar with Laravel framework, esp...

0 Likes
0 Replies

Deleted at defaulting to zero?

Hi. I'm migrating an old database to a Laravel-based app. One issue I'm coming across is that during...

0 Likes
0 Replies

Simple add to database

I'm trying to make it so someone selects an amount to add to their credits field in the users table....

0 Likes
1 Replies
Solved

Accessing Session Data from a Model

Hey guys, Im only new to this, so sorry if its a stupid question. Background: I have 3 databases tha...

0 Likes
1 Replies
posted 10 years ago

DB Queries are outputting to View

Hi All. Having an issue when I run $result = DB::select in a Model it then outputs the $result array...

0 Likes
0 Replies

Optimize sql Query

Hi I have one scenrio. their is static content in database table. My table look like this. id ti...

0 Likes
1 Replies
Solved

How to order the first table by a column in the second table

Hi, i have a little problem trying to order the first table based on the second table column. Table:...

0 Likes
2 Replies
Solved

Cookies to Database Field Comparison

I am setting up a store for my client. They use Shopify... So in order to get login working for cust...

0 Likes
1 Replies

Cannot catch DB exceptions inside seed class

For some reason, I cannot catch DB exceptions inside a seed class: the code never enters the catch b...

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.