Support the ongoing development of Laravel.io →

4,597 Threads

Pass database data to multiples views

Hy. First at all, sorry for my english, is not the best, but i try to do the best. I have a database...

0 Likes
0 Replies

how to add column in table migration table Already exists

how to add column in table migration updated_at ,created_at,delteded_at

0 Likes
3 Replies
Solved

how to delete row from table using Eloquent

this code in routes.php dont work Route::delete('user', function($id){ $newStudent =User::find($id)...

0 Likes
5 Replies

Aliasing and building derived database column names How to make this easy ?

This one has been bugging be for months and I so far I have not found an comprehensive solution to s...

0 Likes
3 Replies
Solved

OAuth multiple accounts on login?

I have a website in which you can login via facebook, twitter or normal register within the site sty...

0 Likes
0 Replies

Define multiple many-many relationships through single pivot table

Hi, I currently have a table which serves as a central link table for many-many relations between se...

0 Likes
0 Replies
posted 10 years ago

orderBy High Medium Low

Hello, I have a table with priority field which has values 'High', 'Medium' and 'Low'. I need the re...

0 Likes
9 Replies
Solved

Count relationship columns with where

Hi, Im trying to return the project with the todos linked to it. The todo has a status and I'm tryin...

0 Likes
1 Replies

What am I getting an IS NULL added?

here is what I have CONTRACTOR and BID table class Contractor extends Eloquent { public function bid...

0 Likes
1 Replies

Search in encrypted data

Hi, I save my data encrypted into the database with the Crypt class. Is it possible to search into t...

0 Likes
3 Replies
Solved

One to Many Relationship

Hi all, i am new to laravel and have a fictional Project to learn: I have two Models: Sports and Tra...

0 Likes
1 Replies
Solved
posted 10 years ago

Using ->pagination() on $q = DB::connection('foo')->select("select * from bar")->pagination(5)

In the Laravel docs, pagination is showing working with a single database set up. I use multiple dat...

0 Likes
1 Replies
Solved

Saving logic in a controller using repositories

I have created and included repositories using this tutorial: http://culttt.com/2013/07/08/creating-...

0 Likes
0 Replies

populate a drop-down list from database

Hi, I have 3 model tables: publishers, authors, and books (many-to-one relation between publishers-a...

0 Likes
1 Replies

Model with calculated sql field doesnt paginate

Hi All. I can't get the paginator to work with a calculated SQL field see below for example // this...

0 Likes
3 Replies
Solved

Counting and filtering results via a Pivot table

I'm currently building a newsletter system for multiple users. Each user has there own set of 'recip...

0 Likes
6 Replies
Solved

Updating a record using repository

Hi All, I have a repository to create a new record for residents, but now I need to use the same rep...

0 Likes
3 Replies
Solved

Drop down list formatting

Hi, I am trying to format drop down lists items while using lists, SiteSession::where('company_id','...

0 Likes
1 Replies

Integer Dates with *SQL Database in Laravel

I've been using integer MySQL columns to store unix timestamp dates and really prefer/like it. I'm j...

0 Likes
6 Replies
posted 10 years ago

refresh database without deleting data?

Is it possible to use artisan to refresh the migrations without deleting the data? I've setup my mig...

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.