Support the ongoing development of Laravel.io →

4,597 Threads

Simple Arrays with ID as Key

I know that Laravel has a wonderfully useful lists() method that you can use with either Eloquent or...

0 Likes
0 Replies

the syntax for redirection and the where clause

Hello So, I want to get routes like these myweb.com/account/company1/adm myweb.com/account/company2...

0 Likes
0 Replies

Unittesting

I am writing a custom package which I want to unittest. The package depends on the DB class from Lar...

0 Likes
2 Replies

Keep data to all views

Hi, I`m new with laravel and I have one question. I have to get some data from database and keep dat...

0 Likes
1 Replies
posted 10 years ago

Product Feed Process

Hi, Using Laravel, what is your approach if you are in this scenario: Data is coming from an API. D...

0 Likes
0 Replies

How do I update value of subsequent parent records

I have two tables: members and contributions. The members table has a recursive relationship, that i...

0 Likes
4 Replies

How to use unix timestamp in eloquent?

I want to use the created_at, updated_at and deleted_at fields with unix timestamp.

0 Likes
2 Replies
Solved

Passing variables in url from a unit test?

Hi i am trying to set a a test to test my database calls. I want to pass a variables in url but cant...

0 Likes
0 Replies

Pivot generated, but migration error

I am attempting to create a pivot table and ran the cmd: php artisan generate:pivot contractor work...

0 Likes
1 Replies

Eloquent Concatencator

Hey guys, just working on a small package that extends the Eloquent Model class and Query Builder cl...

0 Likes
0 Replies

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

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.