Support the ongoing development of Laravel.io →

4,597 Threads

how do i get the insertID of the inserted product ?

if i do $browsenode->products()->save($product); thanks in advance dudi

0 Likes
1 Replies
Solved

Query Builder Problem (Order by a related Table)

Hi Guys, i have a problem with my table structure and the query builder, as i am not able to build t...

0 Likes
1 Replies
Solved

Artisan Commands -- Eloquent ORM Save Error

Hello, Here is my NewSite.php command file: <?php use Illuminate\Console\Command; use Symfony\Co...

0 Likes
0 Replies

Create unique alphanumeric random string in "id" column

Hi, I want to have my id columns of all my tables with unique alphanumeric string instead of the usu...

0 Likes
4 Replies

Looking for projects on Laravel framework

is there anything like Bonfire [Codeigniter] made on Laravel 3 or 4 having Built-In Admin Area,User...

0 Likes
2 Replies

Why two queries in Relationships, not join ?

When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...

0 Likes
9 Replies
Solved

Pulling Results based off clearance

This one has been picking my brain for a while and I have tried multiple methods but can't seem to m...

0 Likes
0 Replies
posted 10 years ago

Can't change Database connection?

I had MySQL setup on the same server as apache. I now created a new instance, and migrated all MySQL...

0 Likes
3 Replies
Solved

Many-to-many, find modelA which belongs to a set of modelB

Sorry if the title is confusing. I am finding it difficult to word this question. Basically I have a...

0 Likes
0 Replies

Comments sorted by upvotes/downvotes

Hi everyone, I'm building a website where every posts has comments. Each comments have upvotes/downv...

0 Likes
0 Replies
posted 10 years ago

strange Date (Europe/Berlin) convert the right way?

HI i have a Datepicker plugin to pick up some dates i get the dates in the input field like (d.m.Y)...

0 Likes
1 Replies
Solved

Not able to get proper return from sql raw test

I have a postgres function that measures the distance between two points. I want to use this as a te...

0 Likes
1 Replies

Postgres view

Is possible to query a postgres view by declaring oi eloquent class protected $table = 'view_name';...

0 Likes
1 Replies

Using "where" with dynamic properties

I have a situation where a user can upload profile photos to an album: there is a "users"...

0 Likes
2 Replies

Make data from home controller accessible to content controllers.

The default layout and its controller has the main menu which gets user info from the DB for the log...

0 Likes
2 Replies

Having problem inserting multiple rows in a table.

I have got the following array from my form. Now I want to store those data in a table. Array: Array...

0 Likes
2 Replies

Behat - Vagrant - cannot access database

Hello there. I've been struggling for hours and hours, searching all over google on how to use Mink'...

0 Likes
0 Replies

MySQL query with curdate() not working

I'm rewriting a site using Laravel and having problems with queries involving dates. This is a pre-L...

0 Likes
3 Replies
Solved

Eager loading with "limit" not working.

I have two tables news and comments. News can have many comments: //News public function comments()...

0 Likes
1 Replies
Solved

Fills created_at and updated_at on record creation

The timestamps are being filled in both the created_at and updated_at when a record is created in my...

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