Support the ongoing development of Laravel.io →

4,311 Threads

Displaying content with html tags.

Hi , I am using ckeditor for textarea. It is working fine. But when we display description on fronte...

0 Likes
2 Replies

Eloquent Mutator + DB::raw

This Setter works well... public function setPoligonoAttribute($value) { $this->attributes['polig...

0 Likes
3 Replies
Solved
posted 10 years ago

Get latest row of table in model.

I got the following code and want the latest result. // Model public function getProfilePic() {...

0 Likes
1 Replies
Solved

Howto handle exceptions that occur when database is disconnected or unreachable?

I am in the process of writing a SPA application using angularjs for the frontend and laravel as a R...

0 Likes
0 Replies

Permissions - only show deep nested content in users group?

Once again I'm pretty lost, the same place as other projects I've started xD A "closed" ap...

0 Likes
3 Replies
posted 10 years ago

Showing models only through relation

What is the best way to use findOrFail / find on a model to find models just belonging to an user. M...

0 Likes
2 Replies

Three table relationship problem in view: Product, producimages, imagetypes. How to show images by type in specific section in view. Not all images.

Hello, can anyone help me with my problem. I can't seem to solve it. I want to show in blade view im...

0 Likes
2 Replies
Solved

How do you create a model relationship base on a column value?

Hi guys! I have a comments table and this table has four fields which are : id post_id type_id comm...

0 Likes
1 Replies
Solved

Possible to use PHP functions in-line with Eloquent ->where clause?

Hi, I've got this in my code. $list = $the_things->where( 'date_field', '>', time() ); That d...

0 Likes
1 Replies

How safe is Input::all() if I pass it to the Model::create() method?

I'm curious as to how much escaping and input sanitizing Laravel does behind the scenes. For instanc...

0 Likes
5 Replies

What is the proper way to set up a model to refer to a table in a different database?

Hi guys! I have two databases main and beta. In my database.php file I have setup the connection to...

0 Likes
2 Replies
Solved

Foreign key constraint is incorrectly formed

http://laravel.io/bin/Nk3v#2 I thought I had everything working, until I added this last foreign key...

0 Likes
0 Replies

Eloquent error: Integrity constraint violation

Hi, this is my first thread so if I doing wrong some things please don't hate me :) I'm using Migrat...

0 Likes
2 Replies
posted 10 years ago

Create a model instance including its relationships

I'm trying the create a model instance including it's relations, but i can't seem to find a proper w...

0 Likes
1 Replies

Routing for a simple search

I want to know the best and simple way to setup routing for this: I have a form that posts to /prici...

0 Likes
3 Replies

Creating Eloquent model with 2 columns?

tableA that contains 2 particular columns. idA, idB tableB has 1 column that those are mapped to. id...

0 Likes
2 Replies

Eloquent select from related table where...

Hi, I've read the eloquent docs, but can't seem to find the answer - am I missing something? I am tr...

0 Likes
2 Replies
Solved

Using Ajax to retrieve data with user input

Hi all, I have an issue I can't seem to figure out..... I want to use Ajax/jQuery to get data from a...

0 Likes
8 Replies
posted 10 years ago

Access restriction in relationships

Hi folks, I've got customers, and projects which belongs to customers. There's a customers table, an...

0 Likes
4 Replies

$_GET isset with laravel?

I'm working with Laravel. Trying to work out the best conversion for below. Would I use query builde...

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