sublime-laravelgenerator icon indicating copy to clipboard operation
sublime-laravelgenerator copied to clipboard

Error thrown on success #ST3

Open adamgoose opened this issue 11 years ago • 1 comments

When running the generate:model command in ST3, I get the error "Oh snap, failed to create model." All the meanwhile, the following file was successfully created:

<?php

class Product extends Eloquent {
    protected $guarded = array();

    public static $rules = array();
}

adamgoose avatar May 27 '13 07:05 adamgoose

Yeah this is because of a slight misplacement with slashes, see #25 for a fix (hasn't been pulled, so you'll have to edit the file yourself accordingly, but it's just 2 lines).

bvangraafeiland avatar Jun 17 '13 07:06 bvangraafeiland