Support the ongoing development of Laravel.io →

4,599 Threads

Laravel 5.4 Database Placement Questions

I know how I can get the data needed, but want to follow Laravel/MVC practices here and new to it. I...

0 Likes
1 Replies

what should contain in pivot table

I'm trying to use pivot table. But I'm confused how should I define my database tables. Concept: Pac...

0 Likes
1 Replies
Solved

[L 5.4] how to forbid multiple responses

Hey guys! In my applicatio, every logged in user can open a "feedback-site". That site has...

0 Likes
1 Replies

Updating a model doesn't work when specifying a morphMany relationship in the withCounts attribute

Has anyone ever run into an issue where you can create records just fine, but the moment you want to...

0 Likes
0 Replies

Structure Suggestions

I'm having difficulty conceptualizing a good way to organize my models, so I'm hoping that maybe som...

0 Likes
0 Replies

Parse error: syntax error, unexpected end of file

I'm just working with laravel, And I use the model to store data,When I register, I encounter the fo...

0 Likes
0 Replies

opposite eloquent method to grabbing related data

I am looking for the opposite of getting all Data that is related in a many to many relations, thus...

0 Likes
5 Replies
Solved

Laravel Eloquent using 'with' and 'where'

Laravel 5.4 I am having a hard time using "with" and "where" together. Instead o...

0 Likes
0 Replies

save() function doesn't work and does not output an error

Hello, I am experiencing a strange problem with the built-in User class in Laravel. Its save() funct...

0 Likes
10 Replies
Solved
posted 7 years ago

Table Ripper

Hello community, I apologize if this is not the place for this, but I wanted to present a package I...

0 Likes
1 Replies

Display multiple json objects present in the single data cell

I have a column say placeditems where each time an user places his order a json object is stored.So,...

0 Likes
0 Replies

Facing problem in outputting a query's result

I have a query whose result is single column and outputs array(1) { [0]=> object(stdClass)#243 (1...

0 Likes
0 Replies

Laravel Adding Bulk data in Polymorphic Relationship

Suppose we have this schema: Set id name Question questionable_type questionable_id...

0 Likes
0 Replies

FatalErrorException syntax error, unexpected 'public' (T_PUBLIC) in Product.php (line 14)

<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Slide; use App\Produ...

0 Likes
0 Replies

Should I have to reload a relationship after an attach()?

I have some code that looks like this: class User { public function addRoleById($role_id) {...

0 Likes
4 Replies

How do you save image to database and display it on website?

I was always against this approach, but now I am reconsidering. Is there a best practice way to do t...

0 Likes
31 Replies
Solved

{L 5.4} Check if User answered a Question right

I get some questions from my database: Controller: public function getQuestion() { $questions = Qu...

0 Likes
1 Replies

After deleting migrations file manually, receive "ErrorException: failed to open stream: No such file or directory"

Hi Folks, From my local migrations folder ([project]-->app->database-->migrations), I manua...

0 Likes
11 Replies

Laravel 5.4 get objects from db and check for user

Hey guys, I'm a laravel newbie and want to create an application to get and answer questions. In my...

0 Likes
2 Replies

Eloquent not returning all results from query?

So this is driving me a bit nuts - Eloquent will not return the full set of data. It's stuck at 426...

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