Skip to content

Commit

Permalink
Update read me
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Mar 8, 2014
1 parent 4b5d05b commit e1d1a32
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,43 +470,50 @@ This will copy all templates to your `app/templates` directory. You can modify t
php artisan generate:publish-templates --path=app/foo/bar/templates
```

Once finished, you'll need to tell the generators where your new templates are located. When you run the `generate:publish-templates` command, it will also publish
the configuration to `app/config/packages/way/generators/config/config.php`. This file will look like:
When you run the `generate:publish-templates` command, it will also publish
the configuration to `app/config/packages/way/generators/config/config.php`. This file will look somewhat like:

```php
<?php

return [

/**
* Where is the template for a model?
*/
'model_template_path' => 'app/templates/model.txt',
/*
|--------------------------------------------------------------------------
| Where the templates for the generators are stored...
|--------------------------------------------------------------------------
|
*/
'model_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/model.txt',

/**
* Where do you put your models?
*/
'scaffold_model_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/scaffolding/model.txt',

'controller_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/controller.txt',

'scaffold_controller_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/scaffolding/controller.txt',

'migration_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/migration.txt',

'seed_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/seed.txt',

'view_template_path' => '/Users/jeffreyway/Desktop/generators-testing/app/templates/view.txt',


/*
|--------------------------------------------------------------------------
| Where the generated files will be saved...
|--------------------------------------------------------------------------
|
*/
'model_target_path' => app_path('models'),

/**
* Where is the template for a migration?
*/
'migration_template_path' => 'app/templates/templates/migration.txt',
'controller_target_path' => app_path('controllers'),

/**
* Where do you put your migrations?
*/
'migration_target_path' => app_path('database/migrations'),

/**
* Where is the template for a database seeder?
*/
'seed_template_path' => 'app/templates/templates/seed.txt',
'seed_target_path' => app_path('database/seeds'),

/**
* Where do you put your database table seeders?
*/
'seed_target_path' => app_path('database/seeds')
'view_target_path' => app_path('views')

];
```
Expand Down

0 comments on commit e1d1a32

Please sign in to comment.