Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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!
- |
- */
- /*ute::get('/', function () {
- return view('welcome');
- });*/
- Route::get('nyoba',function(){
- return 'Hi. Welcome to Laravel';
- });
- /*Route::get('/', function () {
- return view('home');
- });
- Route::get('about', function () {
- return view('about');
- });*/
- //Route::get('about', 'BelajarController@index');
- //start
- Route::get('/', function () {
- return view('chap5.home');
- });
- Route::get('about', function () {
- $halaman='about';
- return view('chap5.about', compact('halaman'));
- });
- Route::get('karyawan', 'KaryawanController@index');
- Route::get('karyawan/create', 'KaryawanController@create');
- Route::get('karyawan/{karyawan}', 'KaryawanController@show');
- Route::post('karyawan', 'KaryawanController@store');
- Route::get('karyawan/{karyawan}/edit', 'KaryawanController@edit');
- Route::patch('karyawan/{karyawan}', 'KaryawanController@update');
- Route::delete('karyawan/{karyawan}','KaryawanController@destroy');
- Route::get('query', 'KaryawanController@search');
Advertisement
Add Comment
Please, Sign In to add comment