Support the ongoing development of Laravel.io →

4,311 Threads

Laravel 5.4, problem saving an associated model

i'm trying to save a new tvshow and it's episodes into the database with the following code but in t...

0 Likes
1 Replies
Solved
posted 10 years ago

Inserting of selected fields from 1 table to another table by eloquent

Can I know how to I select some fields from table 1 and insert the values of the selected into anoth...

0 Likes
3 Replies
Solved

Counting total pricing

Hi everybody, I am creating e-commerce system but i dont know how to count the total price of items...

0 Likes
1 Replies
Solved

Advanced Scout Driver for Elastic Search

Hello, guys! I couldn't find a Scout driver for Elastic Search that would satisfied my needs entirel...

0 Likes
0 Replies

LARAVEL 5 How to UPDATE one to many (hasMany) relation into DB by maintaining Items current id

Hi, i had two modules which are Product and Items Modules Here the relationship between these two mo...

0 Likes
0 Replies

Mysql group_concat and Union?

Hi guys! I have a query in laravel that does the job in 99%. $users = \DB::table('company_user')...

0 Likes
0 Replies

Relationships, Controllers, and Views

Ok, really quite stuck at the moment trying to wrap my head around relationships and how best to use...

0 Likes
5 Replies
Solved

Architectural ideas for a Revisioning System

Hi community, I am quite new to Laravel and currently thinking about migrating a larger project base...

0 Likes
0 Replies

laravel 5 configure timezone to postgres connection

I have a problem with postgres connection that not respect the config in app.php at timezone. config...

0 Likes
0 Replies

Eloquent not persisting to DB on update?

TL;DR: Eloquent models are updating, if I dump the object the attributes show correctly, but when I...

0 Likes
1 Replies

laravel what is the best way check row is deleted

Hi Using soft delete, deleted_at column if is null its mean row not deleted else deleted, i check th...

0 Likes
1 Replies

DB laravel - How to create a query that brings all the values from a column and that has another column equal to the a value (the auth user)

How to create a query that brings all the values from a column and that has another column equal to...

0 Likes
1 Replies

[Package] DbMapper

I want to share with you one of my first packages I've ever made. It's called DbMapper and it provid...

0 Likes
0 Replies

Is It Possible to change Database connection on the way through env in Controller ?

Let's say, i've defined DB_DATABASE=one but, there is a time i want to change database name connect...

0 Likes
1 Replies

Laravel query not binding value correctly

My query is returning the wrong results because the parameter (minutes) is not being binded to the q...

0 Likes
0 Replies

Odd CRUD issue

Im having a odd issue with my CRUD on Laravel 5.4 and PHP 7.1 when developing via "php artisan...

0 Likes
1 Replies
Solved

How do I directly show Category Name instead of Category ID that is on another table?

Here is pictorial Question with 3 screenshots: http://imgur.com/a/94vrg

0 Likes
2 Replies

How set this pure mysql code in laravel

How set this pure mysql code in laravel SELECT * FROM users WHERE YEAR(created_date) = 2017 and MONT...

0 Likes
1 Replies

Laravel 5.4 relationships - how to display in a view

I have 3 tables: users (fileds: id, name, etc.) profiles (fields: id, user_id, first_name, last_name...

0 Likes
3 Replies

QueryException in Connection.php line 647:

I'm trying to save checkboxes. I should be able to select one or mutliple. This is the error I'm get...

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.