Support the ongoing development of Laravel.io →

Database Eloquent Modeling with dynamic table names ?

How can I model dynamic tables names. For example. A product has orders, all orders for the same pr...

0 Likes
1 Replies
Solved

Best Practices for Validation Inside Models

I just came across an example that put the validation inside of a model like so: class User extends...

0 Likes
4 Replies
Solved

Strange error during my script but I can't find the cause

I'm writing an artisan script to download real estate listings images from the state of Florida, the...

0 Likes
3 Replies

Database Truncate Even If It Has Foreign Key

I have a database seeder begins with: DB::table('lessons')->truncate(); But when I run seeder, [I...

0 Likes
3 Replies
Solved

Eloquent model event executed on Query\Builder instead of Model

Hi everyone, i have pretty weird problem. I am developing a project with Laravel with my laptop (XAM...

0 Likes
1 Replies
Solved
posted 10 years ago

Using Command options throwing error

Hi, I'm using Laravel commands, everything is well with the arguments, when I work with it all is go...

0 Likes
2 Replies

Class 'Illuminate\\Routing\\Controllers\\Controller' not found error

Hi, I'm a completely new to Laravel. I've been given a web app written in Laravel 4 to upgrade it to...

0 Likes
2 Replies
Solved
posted 10 years ago

Authentication attempt not "saving" per se

I'm having issues with Authentication where after Auth::attempt()ing someone and have it return true...

0 Likes
4 Replies

Displaying, Storing, manipulating timer through session variable

Is it possible to show a timer countdown (30 minutes) using a session variable and logging out when...

0 Likes
1 Replies
posted 10 years ago

Extending package controller

Hi all, I'm developing a Laravel package, which uses some MainController and AuthController. Both of...

0 Likes
0 Replies
posted 10 years ago

Issue with URL generation

I'm currently using Laravel 4.0* with my app and having trouble producing clean URLs when the URL be...

0 Likes
3 Replies
Solved
posted 10 years ago

Separate packages and other stuff

It would be easier to read forum if packages would be separated from other sections so that it would...

0 Likes
0 Replies

Bash Script for One Click Laravel Install with Vagrant

Hello Forum, I am new to the Laravel Comunity, so, Pardon me if this is against forum rules. I recen...

0 Likes
0 Replies

Need help modelling relationships

So I'm creating a very simple project/task management application in Laravel 4 and I'm not sure how...

0 Likes
3 Replies

foreach on eloquent from last to first

I have a post object that has comments: $post->comments now when I do a select on the comments Im...

0 Likes
2 Replies
Solved
posted 10 years ago

Optimisation techniques on LEMP

I would like to optimise my stack a bit more for, i For now i have a stock ubuntu, nginx , MySQL, an...

0 Likes
3 Replies
Solved

query returning something wrong

Hi... I started using laravel 2-3 months ago and for the first time I have a problem I can't solve :...

0 Likes
1 Replies
Solved

Survey Design

I am looking to create a dynamic form survey using a database with questions, answers, and associati...

0 Likes
0 Replies
posted 10 years ago

Eloquent hasOne Relationship, MSSQL good, but returning null

Using a MSSQL DB, I have a relationship set up between Vm hasOne to Vmconfig Vm <?php class Vm...

0 Likes
1 Replies
posted 10 years ago

Section on testing

Testing is a pretty huge topic, it might be nice to have it's own dedicated section in the forum for...

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