Liferaft Installation

Hello all. First time post. New to laravel in general. Would someone be kind enough to guide me through the proper way of installing Liferaft in Windows 7. I finall...

Need help with Eloquent Relationships (Having N+1 Problem)

I am trying to get some data from my database... My database structure is so: Category->SubCategory->Product i have the following code to get all products s...

Using Repositories

I watched the repositories simplified video and i like the approach of moving lots of the queries from controllers into repositories. I am trying to implement this approac...

Pretty var_dump()

I have seen that in Laravel5 there is a different styling of dd() function. But I wanted to see that great styling whenever I dump somthing, and even if i dump mult...
Tips
2
17

[L5] Best way to load settings from database.

I am currently using caffeinated/modules and i want to load the config from the DB in a ServiceProvider. however, db connections are booted up yet. any workaround?...
General
15
16

Admin-End & Front-End

I'm wondering whether I should create separate models for Admin and Front Ends? Nobody discusses about models, all talks about separate controllers, that is self cl...

Socialite, Scopes and Permissions

I just installed laravel/socialite and it worked very well for GitHub authentication. I have a couple questions: How can i define my scopes for eac...

L4->L5 package configs are broken?

As far as I'm aware, starting with L5, package configs are no longer separated by vendor and they don't support the default config.php. For example, w...

Issue with move() public_path

Hi all, My httpd.conf file DocumentRoot is configured to be "E:/wamp/www/" instead of DocumentRoot "E:/wamp/www/laravel/public". So when i call this...

Eloquent relationship with JSON?

I have the following code in controller The above returns "Undefined property: stdClass::$Dealtype" But this works...

PHPStorm navigating files

Hi all, I'm having a problem with Phpstorm's navigate files feature. Say I'm in app/http and want to make a view. If I press alt + home (on windows), and browse to the view...
Tips
2
2

Trying to access config values from package service provider

Still attempting to create a L5 package, and it's going well, but i'm having an issue. In one of my package classes i'm trying to access a config value from the con...

Authentication interface in L5

Is there an authentication interface I can inject into a package? Instead of doing App\User, is there a contract that will always point the implementations of User...

Having trouble Creating a Like system for comments

I'm creating a project using Laravel. Users are able to like comments. I want to display a "like" button so a user can like a comment and if the user has already liked the...

L5 - Repo in Controllers?

What are your thoughts in injecting repo into a Controller method? Should I placing this code in a command or some sort of service class? public functio...

"Best answer" notification

I noticed that I've been given an award for "number of best answers". Problem is, I can't find them. It'd be nice to have some sort of alert, whether it be email or on the...

Is it bad to reference relationships in controllers?

I think I'm having some confusion that is stemming from the exact use of repositories. I get it at a basic level, to abstract Eloquent (or whatever) away from your controll...

Elixir .js compile on watch?

Not sure how to get my js to compile on watch, seems like the command gulp watch only compiles the less files. Not sure how to get it to detect my javascript changes? My j...
Mix
3
26

Connecting repositories and domain objects

Hi all, I am refactoring some of my code into something more domain specific and I wanted peoples advice on how to persist it to the database. Currently I am buildi...

Cpanel and Artisan error - Piping email to Application

I followed this tutorial to pipe email messages to a Laravel application: http...
Create a New Discussion Button
Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels