Created
July 19, 2019 03:24
-
-
Save suehok/22e25fbf6113798fbcf7f422ddedd9dd to your computer and use it in GitHub Desktop.
Add Publish Route For Publish Action
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 | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which | |
| contains the "web" middleware group. Now create something great! | |
| | |
*/ | |
Route::get('/', function () { | |
return view('welcome'); | |
}); | |
Route::group(['prefix' => 'admin'], function () { | |
Route::get('posts/publish','Voyager\PostController@publish')->name('posts.publish'); | |
Voyager::routes(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment