Support the ongoing development of Laravel.io →

4,311 Threads

creating word file using database result for download

I want to create a word file for download after fetching all records from table. can anyone suggest...

0 Likes
1 Replies

Many to many pivot table insert datah

Hello, I am facing following problems while insert data in a pivot table. This is link Expecting sug...

0 Likes
0 Replies
posted 7 years ago

How to save and load data from select type elements that do not have the saved description in the database

Good night people! Could anyone please tell me, what would be the best practice for saving and loadi...

0 Likes
1 Replies

Laravel 5.3 Dependant Dropdown functionality issue

Hi All, I'm attempting to create a successful dependant dropdown menu. I've run into some problems.....

0 Likes
0 Replies

leftJoin with replace in condition

A part of an existing plain sql condition contains follow leftJoin part: LEFT JOIN database.table1 x...

0 Likes
1 Replies

Issue with limits in eager loading relationships

Take the example Videos->comments Videos::with([comments => function ($q) { $q->take(1)...

0 Likes
0 Replies

How to change data type and add column with migration without losing data? (laravel 5.3)

My migration is like this : public function up() { Schema::create('tests', function (Blueprint $...

0 Likes
1 Replies

How to override saveMany method?

I have two classes Activities and Questions. Their relation is many to many. I need to save many que...

0 Likes
0 Replies

how to show login validations errors using this code

with using this code $auth = Auth::guard('web')->attempt(['email'=>$request->email,'passwor...

0 Likes
0 Replies

Undefined Variable Laravel 4

Hi all, Im relatively new to laravel, but have been doing PHP for the last year with MySql, Im curre...

0 Likes
17 Replies
Solved
posted 7 years ago

5.3 hasmanythrough id comes from pivot table id

I have a method Assets. It has this this relation: public function fields() { return $this->...

0 Likes
0 Replies

Importing DTO data from external API into Laravel Database?

I'm working on a project that imports data from the Riot API (League of Legends). I'm currently usin...

0 Likes
0 Replies

How different is “User Model” in Laravel 5 compared to Laravel 4?

I migrate from laravel 4 to laravel 5. I modified User Model to make it compatible to laravel 5 User...

0 Likes
0 Replies

I can no longer bind an object model to a route and pass it to a controller...

There is a lot more to my project, and this happens in every location where I use this technique.. b...

0 Likes
1 Replies

General error that field doesn't have a default value

I'm running into an error that I can't solve. The mentions online aren't giving me a viable solution...

0 Likes
4 Replies
Solved

How to display the users thumbnail picture in my dashboard route

I have two tables users and user_details and i have created a relationship between the two of them...

0 Likes
5 Replies

Eloquent Reverse Engineering

Is there anyway to convert an existent Mysql DB to the Eloquent ORM automatically? I'm creating a La...

0 Likes
3 Replies

Get last N posts per category

I know this has been asked before by others but no answer is good or explicit. Many give great worki...

0 Likes
0 Replies

Issues with Eloquent using with(), groupBy() and sum()

I have got my relationships correctly set in the models. I like that I do not have to join any table...

0 Likes
0 Replies
posted 7 years ago

Return json object instead of array

When i return json, it returns a array instead of an object. $order = Order::where('user_id', $custo...

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