Support the ongoing development of Laravel.io →

4,602 Threads

Error in Exception handler when not connected to database in Laravel

I have the following code in my app/start/global.php file: App::error(function(\PDOException $ex...

0 Likes
1 Replies
posted 10 years ago

DB::raw vs QueryBuilder, DB::raw works QueryBuilder fails

Hey i have this http://laravel.io/bin/4X3ar how can i get 2 diffrent results with the same query?

0 Likes
0 Replies
posted 10 years ago

Query Builder Right Join Where Between condition

I am doing the below SQL, perfectly work in sql query client select `member_status`.`name`, COUNT(me...

0 Likes
0 Replies

How do I implement delete messages function in a laravel chat app?

I have a laravel chat app, is working fine and these are the relationships declared in the model. U...

0 Likes
0 Replies
posted 10 years ago

Convert Query SQL to Laravel

please, how I can do this query with laravel? http://laravel.io/bin/3BmXm select cf.city, sum( cf.to...

0 Likes
2 Replies

Access denied for user 'forge'@'localhost'

Hi, The other day I had an issue and changed the environment to production based on another thread's...

0 Likes
2 Replies
Solved

Foreach in query builder?

Hi! How can i build a query eg: $products = Product::whereHas('tags', function($query) use($arrays)...

0 Likes
0 Replies

Concat results from a query

I'm trying to concat the results of a database query and return them as a variable that I can insert...

0 Likes
2 Replies
Solved

merging data of different data sources (database and REST api)

Hi, I've managed to setup a a database connection (eloquent model) and to display data of one table...

0 Likes
1 Replies

vagrant/homestead - can I automatically create databases?

I'm using vagrant/homestead. and everytime i "destroy and up" or reload, my databases are...

0 Likes
1 Replies

Store list of IDs on single column

Hello everyone! I have a relational model of three tables. And all with an N-N relationship. To simp...

0 Likes
0 Replies
posted 10 years ago

Schema migration error

If I create schema like this: Schema::create('clinic', function(Blueprint $table){ $table->increm...

0 Likes
0 Replies
posted 10 years ago

Collection vs array

Hello, I'm using a table pivot. Then I use a loop like this: foreach($ans as $a){ echo $a['name'...

0 Likes
0 Replies

Laravel : Call to undefined method Illuminate\Database\Query\Builder::detach()

I'm trying to delete an object model Studio which hasMany model Member and hasMany model Game and se...

0 Likes
0 Replies

Neo4j Cypher adapter

Hello, I have created a neo4j package specifically used to send cypher query. Have a look at it here...

0 Likes
1 Replies

create mysql views by migration scripts in laravel 4

how we can create mysql views by migration scripts in laravel 4??

0 Likes
3 Replies

Duplicates on querying db for products based on filters data

I have a simple filtering on my catalog. It allows me to choose the product based on its attributes...

0 Likes
2 Replies
Solved
posted 10 years ago

Converting SQL Query into Laravel

I want my query to return the rows of the table where a column contains a specific value first, and...

0 Likes
0 Replies

Eloquent swapping other data into new insert when it shouldn't be

Hello all! I'm having a rather frustrating time with an error and can not seem to work it out. I h...

0 Likes
2 Replies
Solved

SQLite Database on Capsule does not update

Retrieving records works correctly but updating items through save() does not do anything. It doesn'...

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.