Laravel-4-Generators icon indicating copy to clipboard operation
Laravel-4-Generators copied to clipboard

Generate with workbench.

Open thearabbit opened this issue 11 years ago • 6 comments

Could i generate it with workbench? For example i have workbench structure:

app/
.......
workbench/
   myvendor/mypackage/src/
      Myvendor/Mypackage/
      controllers/
      migrations/
      seeds/
      models/
      views/
      route.php

Please example for me.

thearabbit avatar Jun 06 '14 06:06 thearabbit

+1

tobyzerner avatar Jul 15 '14 06:07 tobyzerner

i need generate operations through the workbench, "--Path" is not the fastest way.

imehdihosseini avatar Sep 14 '14 07:09 imehdihosseini

This would indeed be very handy. +1

pepijnblom avatar Sep 15 '14 08:09 pepijnblom

Me gusta +1

ax3lst avatar Sep 15 '14 16:09 ax3lst

fix this by write these lines:

this steps applied to view command, you can do these steps to other commands.

open: {laravel}\vendor\way\generators\src\Way\Generators\Commands\ViewGeneratorCommand.php 1- find method named: getFileGenerationPath() 2- add this snippet before return statement :

if ($this->argument('workBench') !== FALSE) {
            $workBench = base_path() . '/workbench/' . $this->argument('workBench') . '/src/views';
            return sprintf('%s/%s.blade.php', $workBench, $viewName);
        }

3- find method named: getArguments() 4- append flowing array element to returned array :

['workBench', InputArgument::OPTIONAL, 'Work Bench path ex:vendor/package' , FALSE]

5- My English is poor :)

ElawadyNet avatar Oct 12 '14 09:10 ElawadyNet

+1 on this! Would be really awesome!!

sfunaro avatar Dec 03 '14 00:12 sfunaro