How do I revert from generate:resource while using JeffreyWay/Laravel-4-Generators? -


how revert generate:resource while using jeffreyway/laravel-4-generators ?

is there shortcut remove installed resource through command, inverse of statement below ?

php artisan generate:resource post --fields="title:string, body:text" 

i have installed & created resource using generator in https://github.com/jeffreyway/laravel-4-generators , watching tutsplus video https://tutsplus.com/lesson/running-migrations/

there no shortcut - need remove files manually. if using git (or similar version control) can 'roll back'.

otherwise need delete:

  • post migration table creation
  • model/post.php
  • views/posts/*
  • controllers/postcontroller
  • seeds/poststableseeder.php
  • tests/controllers/postscontrollertest.php
  • remove postseeding databaseseeder.php
  • update routes.php remove route::resource('posts');

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -