Last active
June 18, 2018 07:01
-
-
Save gr1zix/631d72a9957dee6bdbc65d9c4e526fe2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class PostsController extends Controller | |
{ | |
/** | |
* Base methods structure | |
* | |
* Create by artisan: php artisan make:controller PostsController --resource | |
* | |
* index - show list of posts | |
* show - show single post | |
* create - show create form | |
* store - submit function for save new post | |
* edit - show edit form | |
* update - submit and store updated post data | |
* destroy - delete post | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment