<?php
use Illuminate\Support\Facades\Route;
use \App\Http\Controllers\{{ controllerName }};
Route::controller({{ controllerName }}::class)
	->middleware(['web','auth'])
	->prefix('{{ tableName }}') 
	->as('{{ tableName }}.')
	->group( function () {
        Route::get('/', 'index')->name('index');
        Route::post('/get_data', 'get_data')->name('get_data');
		Route::get('/create', 'create')->name('create');
		Route::get('/{{{ modelVariable }}}/edit', 'edit')->name('edit');
		Route::get('/{{{ modelVariable }}}', 'show')->name('show');
		Route::get('/{{{ modelVariable }}}/load', 'load')->name('load');

		Route::post('/store', 'store')->name('store');
		Route::put('/udpate/{{{ modelVariable }}}', 'update')->name('update');
		Route::delete('/destroy/{{{ modelVariable }}}', 'destroy')->name('destroy');
	});
