Support the ongoing development of Laravel.io →

Eloquent model default scope.

Hi all, I am looking to create two models, both on top of the same table. I know that I could do wit...

0 Likes 2 Replies
Solved

Add two months to the current date

Hi, I am trying to add two months to the current date : $sale->sale_date = date('Y-m-d 00:00:0...

0 Likes 8 Replies
Solved
posted 8 years ago

ServiceProvider in a folder

Hey, I want to extend Sentry 2 with a new class. I did everything right but i have a problem. If i a...

0 Likes 4 Replies
Solved

Eloquent Relationships Bad Practices?

If I have two models: Institution and InstitutionStatus Is it considered bad practice to have Instit...

0 Likes 1 Replies
Solved
posted 8 years ago

Eloquent and database functions

Hi there. I'm new to Laravel so please be gentle with me! I'm a little stumped as to how I would go...

0 Likes 3 Replies
Solved

Asset-Pipeline SCSS Compass

I'm setting up Asset-Pipeline as part of our project. Previously we used Codekit to compile these SC...

0 Likes 1 Replies
Solved

Tag request: Architecture Tag

Any chance of adding an "Architecture" tag as an option? This tag would represent threads...

0 Likes 2 Replies
Solved

[SOLVED] Artisan doesn't work after upgrading to 4.1

Hi, Yes - i know there's threads about this but I've tried just about everything. After upgrading to...

0 Likes 1 Replies
Solved

Copied application is not working

Hello Community! I developed an Application with Laravel 4.1 on my Windows machine (and it's working...

0 Likes 1 Replies
Solved
posted 8 years ago

filemanager thread

Every company in my app has a folder that has the same name as the company name: Inside that folder...

0 Likes 4 Replies
Solved

Storing multile selections into database

Hello, I have a form with select name "interests" and i present multiple options so i am u...

0 Likes 4 Replies
Solved

Issue loading psr-4 ServiceProvider

Hello, I'm getting a class not found exception after creating a service provider for my repositories...

0 Likes 4 Replies
Solved

Adding Select statement to ORM

Retrieving A Record By Primary Key $user = User::find(1); var_dump($user->name); Is there anyway...

0 Likes 4 Replies
Solved

Retrieve the sender username of a message with relationships

In my Message.php model, I defined the following: class Message extends Eloquent { public functi...

0 Likes 3 Replies
Solved

Blade Nesting

What I want to do is @include(@yield('layout')) which I can't do because it is most likely nesting p...

0 Likes 4 Replies
Solved

Problem with returned statements in Route

Hi I have a strange problem on a parallel plesk. everything work's fine on my local apache but after...

0 Likes 1 Replies
Solved

Related table, possible issue with table name?

Hi, I have a simple scenario here that is bugging me. There are two models: class DbNation extends E...

0 Likes 3 Replies
Solved
posted 8 years ago

Mocking a Stored DB Connection

Hi Guys I am saving a connection to a remote database in a static class variable. I can mock the con...

0 Likes 1 Replies
Solved

Where to put bucket name for aws-sdk-php?

All the examples show to specify your bucket name on the spot, but what if I use the same bucket nam...

0 Likes 2 Replies
Solved
posted 8 years ago

Laravel IoC Multiple Subclasses Bindings Confusion

I have one abstract class AbstractValidator. Currently, I have two subclasses, LoginValidator and Si...

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

© 2023 Laravel.io - All rights reserved.