Support the ongoing development of Laravel.io →

4,312 Threads

posted 10 years ago

When exactly are mutators run?

In the process of writing unit tests, I noticed that my model mutator is only run ONCE, even though...

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

Seeding image fails validation

I am trying to seed an image, however it fails a validator test for 'image' - even though I am passi...

0 Likes
2 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

how to save data from a multiple select

i have this multiple select from a form: {{Form::select('category[]',$category_details,null,arra...

0 Likes
1 Replies
Solved
posted 10 years ago

Add filter to Builder on a custom method call

I want something similar to withTrashed() and onlyTrashed() for my posts so I can get only public po...

0 Likes
1 Replies
Solved

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 not display information about account

Hi, I have a problem with displaying information about account. The method: public function getProfi...

0 Likes
2 Replies
Solved

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

Updating exactly the same DB query

I have two rows, one for moods, and count. If user submit the same input i.e. "happy" then...

0 Likes
0 Replies

Eloquent relation

Hello, I have two tables 'rooms' and 'reservations' (i don't have any relation between the two table...

0 Likes
0 Replies

belongsTo via multiple fields

Hello, I'm in situation where I'm really old db-schema, that can't be change because of bunch of rea...

0 Likes
0 Replies

Removing comma from laste array

How can i remove ',' from last array? <h1>You are entered @foreach($splits as $split)...

0 Likes
6 Replies
Solved
posted 10 years ago

Laravel Join Statement

I have a table with all an item's information, such it's image, name,etc. I have a users table with...

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

Unique categories to parent?

Hey guys, Currently I have the following tables: Categories Listings (belongs to category) What I wa...

0 Likes
0 Replies

Laravel Where statement

In my view I am displaying an array of items with their prices and etc. I want to check it that item...

0 Likes
0 Replies

Getting deleted values via relations

I have 3 tables: vehicles, drivers and vehicle_driver_owners. drivers table includes all the registe...

0 Likes
0 Replies

Make a form in bootstrap modal and load it dynamically.

I am working on app, which required a form in bootstrap modal and also load the form dynamically. i...

0 Likes
1 Replies

Laravel Database 'whereNotIn' error

Hi guys, I'm trying to run the following queries and running into this error: preg_replace(): Parame...

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.