Homestead Mysql provisioning errors

I keep getting this output when I try to build and provision a new homestead VM: Ezras-Air-2:Homestead2 Ezra$ vagrant up Bringing machine 'default' up with...

Codeception doesn't roll back the database

Hi guys, I have a login test, which works fine on the first run vendor/bin/codecept run functional Codeception PHP Testing Framework v2.0.2 Powered...
Testing
11
110

[L5] Custom Class

Hi there. I'm a little bit confused about custom Class. If I take a look to the documentation, there is precisely the example of what I intend to do, create a payme...
General
14
19

Eloquent and PhpSpec

Hi. I'm developing a L4 package. I'd like to test this trait, in particular the hasRole method <?php namespace Vendor\Package\Traits; trait UserTrait {...

Assert cache is empty.

Hi folks, ** Is the a way to assert that laravel cache is empty, in laravel 4 ? ** This is for acceptance testing. For example : - empty cache - view a pos...

How Do I Create Effective Links In Bootstrap Tabs ?

Problem: when applying standard L4/Blade link syntax to Bootstrap tabs the links do work work. Description: I'm using BS Javascript enabled tabs - see this Bootply:...
General
15
53

[L5][FIXED] problems with migrating the db

Hi, Im working on a simpel website for posting blogs. each article has multiple pages and multiple categories it belongs to. However, when i try to migrate for the...

How to setup all packages (migrations/seeds/configs..etc) in one step?

My app contains a lot of packages, each package asks for configuration publishing, migrations, seeding , assets publishing or all. So, this way, whenever I want to do a fr...

How to orderBy two eager loads (one of which is nested)

Hello. The following eager loading isn't ordering: $alcances = Alcance::with( array( 'user' => function($query){ $query->orderBy('nombre',...

Nicely formatted testing results output

In one of the many lessons about testing, Jeffrey showed how you can get a nicer looking output from one of the test suites, possibly to use as a loose set of QA documentat...

Using CommandBus to Update Values

I'm applying CommandBus to my project as I'm learning it via all the lectures :) Creating & inserting new values to DB is fine. Quite easy. However, I cannot find how...
General
10
26

filters

I have Route::filter('own_product', 'Swap\Filters\EditProduct'); how Do I access the $request and the $response in that cont...

Complex MySQL Query Question

I was reading a Laravel tutorial on notifications and came across this fetch by group code. Am I missing something or is this level of complexity required for mySQL DB get...

How do I filter my DB query results to not display any duplicate foreign keys? Laravel

I'm a novice at php and creating a project using Laravel. I'm not sure the correct way to even ask this question so I will begin explaining. User profiles have a se...

How to modify xml with DOM?

Hello, http://laravel.io/bin/zjG8n I open this xml with DOM and among other things i need update s...

[L4] Mail problem

Hi everybody, we are trying to send a PLAIN email using the Laravel 4 mail facade which uses the swiftmailer package like this: Mail::send(['text' =...

[L4.2] Call to Undefined Function that is 15 lines away

This is my controller: <?php class BudgetController extends ApiController { public function index($id) { $budget = []; $exps =...

Templates and partials

I'm trying to dissect a template I purchased and make layouts and partials out of it using the blade syntax. I have included my master layout file and one of my partials th...
General
11
45

Laravel 5 displaying views from custom classes

Hi! I need my custom classes (not models) to have access to showing views. Is there anyway I can do so? What I currently do is namespace my classes under A...
General
13
70

Validator facade mock

When I'm trying to use example from Jeffrey's book on testing with laravel, which goes like: Validator::shouldReceive('make') ->once()...
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