How to set minumum Laravel version for my public package which I'm gonna develop

I wanna make composer package for Laravel. Composer.json has property to set min PHP version; "require": { "php": ">=5.3.3&qu...
Laravel
5
155

A video/series/tutorial that explains the repository pattern?

Hi, I'm find it hard to understand the way the repository pattern works. I tried to read some articles about it and I always got confused how it much more "simp...

Where should I update a related model's attributes?

Hey folks, I was hoping to tap the collective experience of this forum to help me out with a general design problem I'm running up against. I have an application tha...

Reusing form for add and edit without Form::

With laravel 5.1 not coming with pre-canned Form Builder I have noticed Jeffery start to use standard HTML for his forms (especially in ProjectFlyer). How would you...

Problem with model saving array key vs the value

I have a dropdown for selecting an article status, but when the model saves to DB, it saves the array key and not the value (0,1, or 2 respectively). I have my contr...

Laravel multiple databases problems

Hi everybody, I hope y'all doing well. Here is the context of my project to help. I'm building a website where clients will see statistics of data I own on a SQL Ser...

Best place to put an API file

Hello everyone. First time poster. I have this php file, it's a class which has methods to call an API online. Can this just be placed directly under the app dir - w...

[PHPStorm] Compile Bootstrap SASS with File Watcher

I'm trying to get familiar with PHPStorm's File Watcher functionality, and am trying to set up Bootstrap SASS to compile from my /app/assets/bootstrap-sass-official/stylesh...
General
4
217

Relationship help - products, images & slides

Any help would be appreciate PRODUCTS id | name | SKU ------------------------------------- IMAGES id | name | imageable_id | imageable_type ---------------...

Exception Handler incompatible type

Hi, I want to be able to handle Illuminate\Session\TokenMismatchException, so in App\Exceptions\Handler I have the following conditional in...

Dropzone.js without Ajax Requests?

Hello Guys, i have a question to Dropzone.js. I want to add Files to my "Ticket" Creation-Form. The db-relationship is: A ticket has many Files...
General
1
372

Problem with L5 + socket.io + redis

Hey all. i thought i'd ask for a little input here because i'm pulling my hair out. So. I'm trying to setup the laravel event broadcasting through redis and s...

Localization

How can we set the proper configuration for my languages on Laravel 5? For example www.mysite.com/en www.mysite.com/de etc... thx...

createConnection Timing Out

Hello All, I recently started messing around with New Relic to track performance of my application, and I see occassionally a couple of transactions that take 15-20...

Mutator for multiple columns

Greetings, is there a way to have mutator for multiple columns? I have an address in DB and I would like to select street, number and...
Laravel
2
130

hasOneThrought

Is there such a thing? Or how can one access something like that? This is a spinoff of my first question...

Project Flyer - File name as Flyerid counter & file count

Hi, I'm trying to implement Project flyer , How i can get the uploaded photos nameing like example [flyerID].[photo-1.png] [flyerID].[photo-2.png] [flyerID].[...

Running modify query raw SOLVED

I am trying to run this in a migration. But for some reason it will not modify the table. However if I run this query directly it works. Any ideas? DB::...

[NPM3] Windows users, solution to all your problems!

Oh wow. I just installed [email protected] This is awesome. My node_modules folder now contains 582 folders, instead of 4, with thousands of nested, nested,...

Cache tags removed in L5 ?

It seems like Cache tags no longer exist in laravel 5.1. I'm looking for something that can provide similar functionality. If there isn't something like that available, I...
Laravel
6
101
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