Support the ongoing development of Laravel.io →

4,599 Threads

posted 8 years ago

Elasticsearch Laravel : No alive nodes found in your cluster

I'm having issues getting elastic search to work with my larval project I'm trying to index a docume...

0 Likes
0 Replies
posted 8 years ago

Problem to simply get data with 3 tables

Hello everyone ! I began laravel one week ago, and today I decided to properly use eloquent. So I wi...

0 Likes
2 Replies

Saving multiple data in database

What should I change to save multiple data here? Thanks in advance. This should be the output fsr_nu...

0 Likes
0 Replies

Why no alert is showing in Laravel 5?

this is my PostController.php, <?php namespace App\Http\Controllers; use Illuminate\Http\Reques...

0 Likes
1 Replies

Eloquent Lookup Tables and Dynamic Model Creation

So I've been working on a project for a few weeks now and have just picked up Laravel because of it...

0 Likes
0 Replies

Sync or attach by something other than an ID?

I'm following along with examples in the docs, and am playing around with many to many relationships...

0 Likes
4 Replies

Undefined Variable 'posts' - Laravel 5

In my ShowController, I returned a view with variable posts, like <?php namespace App\Http\Contr...

0 Likes
1 Replies

Handling big amounts of related models (creation and updates)

Hi, I've got the following 2 models: Share -> hasMany() -> Shareprices in a Console Command sc...

0 Likes
0 Replies

Query a many to many relationship inside another relationship.

Hello guys, i have been a little confusing to build a query as described bellow: I have a model call...

0 Likes
0 Replies

help with Request

Hello Im making an autocomplete search however when I type a letter instead of outputing only the da...

0 Likes
1 Replies

Json response removes key in array :(

Hi dd my array looks like this: array:8 [▼ 0 => "promo\1\images\2.jpg" 1 => &quo...

0 Likes
3 Replies
Solved

How To Change In Percent

Gaes How To value change in percent $chartDukungan = $dukungan->map(function ($item) {...

0 Likes
5 Replies

How to seed database after deploying the Laravel app on Heroku?

I successfully deployed a laravel app on Heroku but when I run 'heroku run php artisan db:seed' I go...

0 Likes
0 Replies

Check database column for specific value before insert

I have a column in database table Category called 'no_category' by default is 1 but if user choose '...

0 Likes
0 Replies
posted 8 years ago

How to add index for { $table->timestamps(); } ?

I wanna and the index for the { $table->timestamps(); } . For quick query the some time's recor...

0 Likes
1 Replies
posted 8 years ago

Relationship without foreign key

Hi there, I have a table called Users, and two tables called firstnames and lastnames, respectively....

0 Likes
2 Replies

How to decrypt a particular model field when retrieving through hasMany relationship

I am retrieving a list of articles that belong to each blog of the current user like this: return $c...

0 Likes
3 Replies

"php artisan queue:failed" in Homestead is using mysql not postgres, even though postgres is defined in .env

Hi all, I've got 5.1.6 running in Homestead with postgres set as the DB in my .env file. The entire...

0 Likes
2 Replies

How to pass data to json from Database?

Hello, Here is my Row Query to get the data from database. $user = DB::table('users')->get(); I w...

0 Likes
7 Replies
Solved

View Data Filter Not Working

Hi Gaes I encountered a problem where I want to show data by year If the variable $ year I return th...

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.