Support the ongoing development of Laravel.io →

4,603 Threads

How do I add fields from json to my Eloquent Model?

Hi all please bare with me I am still learning Laravel/Lumen. I have created a Lumen API and created...

0 Likes
0 Replies

How to select between with two fields

I have some problem with my code for select shift_id with just give time, looks my records $waktu =...

0 Likes
4 Replies

Is it okay to run a database query every minute?

I need to dispatch a bunch of jobs at a specific "release" date/time. I thought about just...

0 Likes
2 Replies

ORM where clause on related table with pluck

Hello, how can I use ->pluck('fieldB') in following Laravel code? $Result = TableA::with('tableB'...

0 Likes
1 Replies

ErrorException on Query

I have been using this app for over 2 yrs, all the sudden its giving me this error. Not sure what to...

0 Likes
1 Replies

Relationship not eager loading

Context I have 3 migrations: Members table: class CreateMembersTable extends Migration { public...

0 Likes
1 Replies

Pivot table attach() without auto sort

Hi, $item->categories()->attach([4,1,2,3]); This insert record order by 1 2 3 4 I want it ins...

0 Likes
1 Replies

SQLSTATE[HY000] [1045] access denied for the user: 'homestead'@'@localhost' (password: YES)

Well I'm new to laravel, & still learning it. Basically when i use php artisan migrate, it migra...

0 Likes
7 Replies
Solved

Insert data in relational table using laravel 5.4

I have 3 tables called country,city,university the country and city value displayed as dependent wit...

0 Likes
0 Replies

Connect 3 tables with 2 pivot tables

I'm trying to find all rows in c table (see DB schema) associated with one row in a table. Connected...

0 Likes
5 Replies
Solved
posted 6 years ago

Laravel 5.6 Regarding Database Transaction Concept

DB::beginTransaction(); //SQL Statement DB::commit(); Anything inside the SQL Statement does not lo...

0 Likes
0 Replies

Need your opinion on Laravel with Percona Server

Hey all, I need to build an invoicing app which will have around 50.000 new entries per day. I don't...

0 Likes
0 Replies

[solved] migration problems my first Deploy

Hello everyone, I programmed a Laravel API. Now I would like to deploy these on my VM. Now I get the...

0 Likes
0 Replies

Database with no tables on laravel site

I've an issue with a laravel site which was working perfectly but all of a sudden isn't. Seems to be...

0 Likes
0 Replies

Too many connections

I have 170+ tests and after 152 i have error [1040] Too many connections In my tests i use DatabaseT...

0 Likes
2 Replies

laravel Many To Many relationship with inner relation

I have some problem to get information about item. I read a lot of information on forums stakoverflo...

0 Likes
0 Replies

Eloquent, make rank upgradable!

https://laracasts.com/discuss/channels/eloquent/eloquent-make-items-upgradable Here is more details...

0 Likes
0 Replies

Problem with displaying category and sub-categories!

Hello guys i have problem with displaying categories and subcategories , here is some code BLADE: &...

0 Likes
1 Replies

How do I manually create a Paginator in 5

Hi I've looking round for a while now but cant figure this out how do How do I manually create a Pag...

0 Likes
7 Replies

SetConnection doesn't work in a non-static eloquent context

Hello, I'm trying to do this (Laravel 4.2) : In database.php 'default' => '', In a function $mod...

0 Likes
4 Replies
Solved

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.