Skip to content

Instantly share code, notes, and snippets.

@suehok
Created July 19, 2019 03:24
Show Gist options
  • Save suehok/22e25fbf6113798fbcf7f422ddedd9dd to your computer and use it in GitHub Desktop.
Save suehok/22e25fbf6113798fbcf7f422ddedd9dd to your computer and use it in GitHub Desktop.
Add Publish Route For Publish Action
<?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