| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class PostController extends BaseController |
||
| 15 | { |
||
| 16 | use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
||
| 17 | |||
| 18 | use Crudable; |
||
| 19 | const ADD_MESSAGE = 'Added Successfully!'; |
||
| 20 | const DELETE_MESSAGE = 'Deleted Successfully!'; |
||
| 21 | const UPDATE_MESSAGE = 'Updated Successfully!'; |
||
| 22 | |||
| 23 | public function index() { |
||
| 27 | } |
||
| 28 | |||
| 29 | public function create(Request $request) { |
||
|
|
|||
| 30 | $posts = Post::orderBy('created_at')->get(); |
||
| 31 | |||
| 32 | flash()->success('Create Post'); |
||
| 33 | return view('rt-starter-kit::posts.create', compact('posts')); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function store(Request $request) { |
||
| 38 | |||
| 39 | } |
||
| 41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.