Support the ongoing development of Laravel.io →

4,599 Threads

Issue with limits in eager loading relationships

Take the example Videos->comments Videos::with([comments => function ($q) { $q->take(1)...

0 Likes
0 Replies

How to change data type and add column with migration without losing data? (laravel 5.3)

My migration is like this : public function up() { Schema::create('tests', function (Blueprint $...

0 Likes
1 Replies

data grid searching

What are the most popular tools/techniques for building search capabilities into laravel data grids?...

0 Likes
3 Replies

How to post dynamically generated vuejs array to mysql database

0 down vote favorite I am using this code in my LARAVEL project http://jsfiddle.net/teepluss/12wqxxL...

0 Likes
0 Replies
posted 7 years ago

Get List Fields From Query Builder

I'am new in laravel. I have query builder like this : $menu = DB::select("SELECT menu_id, menu_...

0 Likes
0 Replies

Importing DTO data from external API into Laravel Database?

I'm working on a project that imports data from the Riot API (League of Legends). I'm currently usin...

0 Likes
0 Replies
posted 7 years ago

How To Get Chunk To Query Builder In Laravel

$users = DB::table('products')->orderBy($sortbysql, $sortbysqltype) -> where('product_name', '...

0 Likes
0 Replies

Laravel 5 Form submission of checkbox

these are my controller model and form which has checkbox array which i am trying to save to a singl...

0 Likes
0 Replies

Laravel Casher with Braintree Call to a member function subscription() on null error

Hello , im trying to make a plan based site and the laravel casher doesnt seem to work , when i try...

0 Likes
0 Replies

General error that field doesn't have a default value

I'm running into an error that I can't solve. The mentions online aren't giving me a viable solution...

0 Likes
4 Replies
Solved
posted 7 years ago

Laravel logical - convert price, so on frontend I have always chf value

This is a little bit heavy. I have in my cms four currencies, usd, gbp, euro and the main one chf. A...

0 Likes
0 Replies

Form Model Binding and Radio Buttons

I am building a form to edit a row with Form Model Binding, the problem is all radio buttons are unc...

0 Likes
7 Replies
Solved

Automated MySQL backups?

I know my way around a basic LAMP stack but I wouldn't call myself an advanced server admin by any m...

0 Likes
14 Replies
posted 10 years ago

DB:select toArray()

Hi there, I have a large SQL statement that I am executing like so... $result = DB::select($sql); I...

0 Likes
7 Replies

Eloquent Reverse Engineering

Is there anyway to convert an existent Mysql DB to the Eloquent ORM automatically? I'm creating a La...

0 Likes
3 Replies

Get last N posts per category

I know this has been asked before by others but no answer is good or explicit. Many give great worki...

0 Likes
0 Replies

Issues with Eloquent using with(), groupBy() and sum()

I have got my relationships correctly set in the models. I like that I do not have to join any table...

0 Likes
0 Replies
posted 7 years ago

How to use Informix database

How can I use a Informix database with laravel? Seems like it doesn't support it by default. I am us...

0 Likes
0 Replies
posted 7 years ago

Laravel 5.2 Getting results depending on many to many relations

Hello. I cannot get the "many to many" relation working on product filtering. I would just...

0 Likes
0 Replies

Database relationships one-to-one not saving

I'm a noob at this, please forgive me but I'm trying to connect a one-to-one relationship between a...

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.