Support the ongoing development of Laravel.io →

4,599 Threads

posted 10 years ago

How to make subcategory in migration for products?

I have migration for ecommerce: category and product table. I need subcategory table This is shema f...

0 Likes
0 Replies
posted 10 years ago

I am getting Error . Please anybody can help ?

Error Code: 500 | Message: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other u...

0 Likes
2 Replies

database seeding laravel 4.3

use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database se...

0 Likes
2 Replies
posted 10 years ago

Laravel 5 (4.3)

Installed a fresh copy but unable to connect to the homestead database, anyone else had this problem...

0 Likes
0 Replies

Issues with standard ::create() functionality

Pulling my hair out over this one - Eloquent create only seems to be inserting certain columns Doing...

0 Likes
2 Replies
Solved

eloquent has with where on pivot?

I'm probably being dim but I can't see an example of how to do this. So I have a bunch of users, and...

0 Likes
5 Replies
Solved
posted 10 years ago

Is it possible to generate unique and random string easily in Laravel 4?

Is it possible to generate unique and random string easily in Laravel 4? May be some helper function...

0 Likes
5 Replies

Multiple conditional joins

So i tried using multiple conditionals on my join but laravel assumes that on join i will be compari...

0 Likes
1 Replies
posted 10 years ago

2 queries to 1

Hey guys, How can i optimize this? I dont know how to explain well from dutch to english. With the f...

0 Likes
1 Replies

What is the prefered way to retrieve related models?

Which one of these two calls is the prefered way to retrieve guests checked-in at a hotel? $guests =...

0 Likes
2 Replies
Solved

Use Laravel for multi language static website with some custom functions

Hi, I need to create a new website for our company and I am not sure about the CMS/System. At first...

0 Likes
1 Replies

How to pull a database into a HTML table?

Hi Guys, I'm quite new to laravel and I'm trying to work out how to turn a database table into a HTM...

0 Likes
2 Replies

4.3 models in app directory ?

Why is this good idea? As i see it gets quickly pretty rough when you have 100+ models to work with....

0 Likes
4 Replies

Eloquent relationship with count

I have three models: User: public function projects() { return $this->hasMany('StoredFile', '...

0 Likes
6 Replies
Solved
posted 10 years ago

Parent tables and Pivot tables

Hi, This question might be less laravel but more sql heavy. Please bear with me for a moment. I have...

0 Likes
1 Replies

parse.com php SDK with Lavarel

Hi, I'm new to Lavarel, great framework, following the tuts on https://laracasts.com/series/laravel-...

0 Likes
10 Replies
Solved

How to pass array from view to controller without having a submit form?

Hi! Is it possible to automatically submit array from a php file to controller without having a sub...

0 Likes
1 Replies

Please suggest which the best practice for multiple parameters (Restful)

datamime between 01/09/2014 - 10/09/2014 How to create restful routes ? please help.

0 Likes
1 Replies

"Order by" when querying relation

Hi, I have a Project table and a pivot table "like_project" which has 2 columns : user_id...

0 Likes
1 Replies

Saving image's data in my DB

I'm trying to save images with Dropzone.js in my Laravel 4 project. This is my code: $fileInput = In...

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