Support the ongoing development of Laravel.io →

4,603 Threads

CSRF for 3rd Party

I have incoming data from other trusted 3rd party. Is there any proper way i can handle CSRF? |-----...

0 Likes
1 Replies

Laravel Commenting System not Retrieving Correct ID of its Post

Hi guys, I created a commenting system for a blog. Comments belongTo a Post, and they BelongTo a use...

0 Likes
2 Replies

Using relationship a second time in same controller method

I need to use a relationship multiple times in the same method. I've broken it into multiple queries...

0 Likes
1 Replies

Call to a member function links() on a non-object

Trying to use out of the box laravel pagination in blade template: {{ $pages->links() }} In cont...

0 Likes
0 Replies
posted 10 years ago

How to evaluate pagination links

Hi, I have posts and comments tables. Post and Comment have one-to-many relationship. I have written...

0 Likes
10 Replies

Setting wait_timeout on MySQL connection

I need to set the session wait_timeout on my MySQL connections, and I'd like to do it lazily (i.e on...

0 Likes
1 Replies

Determine nested query in Query\Builder's function newQuery()

I have an application where multiple accounts use the same database. To specify what row belongs to...

0 Likes
0 Replies

Scheme Builder - tinytext is an undefined function? Laravel 4.2

Hi, I am trying to set up the migrations for my table and I can't seem to use $table->tinytext('c...

0 Likes
1 Replies

Many child models using one table, filter results based on column value

I want to use multiple models for the same table but each model should return only rows where "...

0 Likes
2 Replies
Solved

Regular PHP functions

Hi, I'm trying to transition over to laravel and i have included in the start/global.php file a link...

0 Likes
1 Replies

How to pass data in an Ajax call with routing through a controller

Hi guys, Let me begin by explaining what I'm trying to do, so that you can get a better understandin...

0 Likes
1 Replies

How do I sort a result of a query

Hello, Not sure how to phrase this question... hopefully it makes sense. I have a class called "...

0 Likes
0 Replies

Merge 2 Different Collection structure.

I have a news feed that currently is displaying with a structure of what seems to be similar to face...

0 Likes
1 Replies

Eager loading not returning all of the results

I'm trying to eager load a list of credits for a recording. The query I want to run is this: SELECT...

0 Likes
1 Replies

School Schedule - Eloquent & Form

Hi everyone, I am currently building a small app that manages school related stuff. I have to build...

0 Likes
3 Replies

eloquent relations picking elements that are not related

I have 2 tables which are related with a Many to Many relation and the relation table. (users, items...

0 Likes
0 Replies

Eloquent not inserting null values on pivot table

I'm having problems where I want empty strings or a zero to be stored as a NULL in the database. Her...

0 Likes
3 Replies
Solved

Saving image path to a database

$image = $input['image']; $filename = $image->getClientOriginalName(); $destination = 'upload...

0 Likes
7 Replies
Solved

Count authenticated sessions

Hi, Is there an elegant method for counting sessions that are for successfully authenticated users?...

0 Likes
0 Replies

Eloquent eager loading, cannot access relation data

Hello, I have 2 models. One is "developer" and the second is "program". One deve...

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