Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

Check whether model is saved

What is the best way to check whether your model is saved? If I have something like this: $career =...

0 Likes
2 Replies

Form model binding and one to many releationship

So I have this situation where i need to make dynamic amount of fields. But I can't find in document...

0 Likes
0 Replies

Stored procedure as model $table

Hello! I have a huge oracle application (using yajra/laravel-oci8 for oracle interface). I want to c...

0 Likes
0 Replies

Query string does not work as expected

Hi guys, I want to output some listings from my database table, with a very specific relationship pa...

0 Likes
0 Replies

Cyclic loading with global scope.

Hello. I have Location and Contact models which are many to many related. I've creted a global scope...

0 Likes
0 Replies

Convert mysql query to laravel

SELECT * FROM abc WHERE user_id = 2 AND DATE_FORMAT(created_at,'%d-%m-%Y') < '11-09-2014' ORDER B...

0 Likes
1 Replies
posted 10 years ago

Select from subquery - union of 2 tables / Trait with DB class

What I'm trying to do is aggregate data about customer's invoicing and credit notes contained in two...

0 Likes
0 Replies

Laravel 4.2 + Ardent + Soft Deleting

Hey, just tried to update from Laravel 4.1.30 to 4.2.8. Had to undo it because of general troubles w...

0 Likes
3 Replies
Solved
posted 10 years ago

Select one entity in hasMany relationship

Hi, Suppose I have a model Sensor which hasMany Measurement. The models have these fields: Sensors:...

0 Likes
2 Replies

How to implement this using eloquent??

Hello i've been using laravel in very simple projects but now i'm facing a more complex one and i do...

0 Likes
0 Replies

How to apply PDO prepared statements in laravel 4 Eloquent

is there any best practice on how to to apply PDO prepared statements in laravel 4 Eloquent ?

0 Likes
2 Replies

Boolean saved as "on" text in database?

I don't remember doing anything out of the ordinary, but I suddenly realised a boolean column in my...

0 Likes
2 Replies

How do I access Laravels libs from external class?

This has probably been asked a million times but how do I access the Laravel framework classes from...

0 Likes
2 Replies

Using JQuery Sortable table and saving to Database.

I've turned this question into a helpful post after resolving it myself. So I'll post the snippets o...

0 Likes
2 Replies

Filter stripe retrive all

want to filter stripe listing all api. Am writing this code to filter delinquent is true . using lar...

0 Likes
0 Replies
posted 10 years ago

orderBy on hasMany relationship !

Hi guys, I have a project with some images associated with it, how can i order the images ? I tried...

0 Likes
1 Replies
Solved
posted 10 years ago

Laravel eloquent adding IS NULL to DB query

Hi guys! I am running into an issue. For some odd reason Laravel is adding is null to the query. I h...

0 Likes
3 Replies
Solved

database seeding laravel 4.3

use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database se...

0 Likes
2 Replies

Issues with standard ::create() functionality

Pulling my hair out over this one - Eloquent create only seems to be inserting certain columns Doing...

0 Likes
2 Replies
Solved

eloquent has with where on pivot?

I'm probably being dim but I can't see an example of how to do this. So I have a bunch of users, and...

0 Likes
5 Replies
Solved

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.