Skip to content

Commit 6523b59

Browse files
committed
change routes instruction
1 parent 95ede0b commit 6523b59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buttons/export.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ class UsersDataTable extends DataTable
134134

135135
And also add this code to your routes.php file.
136136
```php
137-
$router->post('sample/export', SampleController::class . '@index');
137+
Route::resource('sample', 'SampleController@index');
138+
Route::post('sample/export', 'SampleController@index');
138139
...
139140
```
140141

0 commit comments

Comments
 (0)