Support the ongoing development of Laravel.io →

4,311 Threads

Inserting JSON to DB Using Model

I'm trying to use the model create option and this is my array: $result = array( 'match...

0 Likes
0 Replies

help with identifier and parameter

I want to make uri something like this : localhost:8000/products/productname Route::get('/products/{...

0 Likes
3 Replies
Solved

Seeding & Model Factories Between 3 Relations

I previously asked this question on the Laracasts forums at https://laracasts.com/discuss/channels/e...

0 Likes
1 Replies

Non incremental numeric ID on laravel?

Hi, I wonder if it's possible to use non incremental ID on Laravel? What method shoul I overwrite? T...

0 Likes
6 Replies

SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)

Hi i'm new in laravel. I know that this is fairly popular problem. I've beenn searching for the solu...

0 Likes
0 Replies

Laravel-Excel: How to Open and edit a sheet?

This might sound a little bit silly, but I can't get Laravel-Excel to do a basic workflow: Open a fi...

0 Likes
10 Replies
posted 8 years ago

[5.2] Eager loading returns null

Hello! I'm having an issue with one of my eager loaded relationship. I'm trying to get a Document an...

0 Likes
1 Replies

Entrust allow multiple roles for different objects

I have Entrust set up on an app and it is working well. I have 7 system-wide roles and several permi...

0 Likes
0 Replies

Model get's wrong ID after saving

I've got a Laravel application (5.1.28) which I have running on a development server and production...

0 Likes
6 Replies
posted 8 years ago

Is this an example of good looking write or the oposite?

This is an example of route that I have in my app. Is good looking route or is there any bad practic...

0 Likes
1 Replies

Eloquent Pivot Model Instance with newPivot

My database structure looks like this: users id email ... projects id name ... project_user id...

0 Likes
2 Replies
posted 10 years ago

Eager load optimization

Hi, I have the following models : class A extends Eloquent { public function b1() { retu...

0 Likes
4 Replies
Solved

retrieve not directly related attributes using eloquent

I've currently no idea how to get this done in a smart way. I would like to prevent writing tons of...

0 Likes
1 Replies

Lumen return timestamps in response instead of date time.

Hi I've been searching around a little bit but cannot seem to find it. I have a a column in my datab...

0 Likes
1 Replies
Solved

Establishing Laravel hasMany relationship using non-primary keys

I know this question was asked before and I have tried solutions from those posts but I still cannot...

0 Likes
0 Replies

How to return information from a third table?

Hi, I am having difficultly understanding how to return information from a distant third table. I ha...

0 Likes
3 Replies
posted 8 years ago

Eloquent, shortcut to another model

Hey, I have two 3 models all of them work fine and each one links to the one above. Company Distribu...

0 Likes
3 Replies
Solved

Creating database and accessing it's records without ORM

So, i'm a total noob for laravel and i'm been studying laravel guides from youtube videos and in a p...

0 Likes
2 Replies
Solved
posted 10 years ago

Selecting all records created last month with Eloquent

Hi there, Just trying my hand at selecting records by date range, it looks like this should work but...

0 Likes
7 Replies
Solved

Call to undefined method stdClass::getCategory()

Failing to load the name of the category :( WelcomeController@index: public function index(){ $pos...

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.