Support the ongoing development of Laravel.io →

4,602 Threads

Eloquent Outside of Laravel with mongodb

I am trying to connect to mongo db using the eloquent module outside of laravel, i can get it to con...

0 Likes
0 Replies

Query inside foreach Laravel 4 Controller/view

Well, in my view I've a foreach and I display the id of a product with {{$look->item1_id}} but i...

0 Likes
0 Replies

Please help with pivot query

Hi, I have just started playing with Laravel but am having a bit of trouble optimising this query us...

0 Likes
4 Replies
posted 10 years ago

Testing DB Credentials

I'm making an application this will include an install script. The script will ask for the user's DB...

0 Likes
1 Replies

Help to write query

hello i have sql how can i write in Laravel this sql ? please help. (SELECT goods_id, name, img, ano...

0 Likes
2 Replies

Class Error in migrate:refresh

I am trying to refresh the migration using this command. php artisan migrate:refresh My migrations a...

0 Likes
1 Replies

Query Builder results different from SQL results

Hello, I have built a query with the Query Builder and I monitor what SQL is actually executed by du...

0 Likes
3 Replies

morphMany lists error (Call to a member function addEagerConstraints() on a non-object)

I have a problem with using morphMany relations in combination with lists in my model. I do have a M...

0 Likes
0 Replies

Authenticating A User With Conditions (activating users by admin)

I need to let users resgister themselves through a form, and let them inactive users till, the Admin...

0 Likes
4 Replies

Relational database problem

i am following this tutorial http://scotch.io/tutorials/php/a-guide-to-using-eloquent-orm-in-laravel...

0 Likes
2 Replies
posted 10 years ago

Fill the database with migrations

Hi, I'm working on a CMS and I have a little problem with my migrations. I added a new migration fil...

0 Likes
0 Replies

how to "disable" a global scope in order to include "inactive" objects into query?

Hi all! I am having trouble with global scopes, especially the removal of the scope. In my User mode...

0 Likes
0 Replies
posted 10 years ago

longtext type

i have strange issue i have a table with a column of longtext. when i use laravel to retrieve the da...

0 Likes
1 Replies

Dynamic conditional statement(within conditional statement) in laravel

I want to apply conditional loop like this dynamically. I'm not getting logic of how to do that. Her...

0 Likes
0 Replies
posted 10 years ago

Add column at the beginning of a table?

Anyone know a way to add a column to the BEGINNING of a table. With just the 'after()' method I'm no...

0 Likes
0 Replies

Is there any solution for MySQL "in list" for joins?

I'm trying to achieve this: ->join( 'table_a', function( $join ) use( $ids) { $join ->on( 'tab...

0 Likes
0 Replies
posted 10 years ago

Can't rollback

Hi I'm trying to rollback my migration but it's not working. I get this error "{"error&quo...

0 Likes
1 Replies

Is it possible to store "macros" in database?

Lets say I have a table with notifications and in text body I want to have link to login page, can I...

0 Likes
4 Replies

Calling controller-function from within custom artisan-command -> unknown database

I've created a custom artisan-command in order to call a controller-function via commandline (withou...

0 Likes
1 Replies

MS SQL Server - ErrorException - json_encode(): Invalid UTF-8 sequence in argument

I'm trying to use MS SQL Server with the latest Laravel. I managed to figure out the connection to t...

0 Likes
3 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.