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!
- |
- */
- //Route::get('nyoba', function () {
- // return 'welcome to laravel';
- //});
- //Route::get('//','Permohonan@index');
- Route::get('/', function (){
- return view('chap8.home');
- });
- Route::get('about', function (){
- $halaman='about';
- return view('chap5.about', compact('halaman'));
- });
- Route::get('karyawan',function(){
- $halaman='karyawan';
- $karyawan=['Munawar','Budi','Jono','Unggul jaya'];
- return view('chap5.karyawan',compact('halaman','karyawan'));
- });
- //Route::get('about', 'BelajarController@index');
- Route::get('/Project1','Project1Controller@index');
- Route::post('/Project1/auth','Project1Controller@auth');
- //Route::post('/','LatihanController@index');
- Route::get('sampeldata',function(){
- DB::table('employees')->insert([
- [
- 'nama' =>'Zaid',
- 'nip' =>'10001',
- 'tgl_lahir' =>'1990-01-22',
- 'gender' =>'L',
- 'created_at'=>'2017-04-24
- 21:18',
- 'updated_at'=>'2017-04-24 21:18'],
- [
- 'nama' =>'Hindun',
- 'nip' =>'10002',
- 'tgl_lahir' =>'1988-01-22',
- 'gender' =>'P',
- 'created_at'=>'2017-04-24
- 21:19',
- 'updated_at'=>'2017-04-24 21:19'],
- [
- 'nama' =>'Winda',
- 'nip' =>'10004',
- 'tgl_lahir' =>'1997-06-34',
- 'gender' =>'P',
- 'created_at'=>'2017-04-24
- 21:19',
- 'updated_at'=>'2017-04-24 21:19'],
- [
- 'nama' =>'Hasan',
- 'nip' =>'10003',
- 'tgl_lahir' =>'1991-11-26',
- 'gender' =>'L',
- 'created_at'=>'2017-04-24
- 21:18',
- 'updated_at'=>'2017-04-24 21:18'],
- ]);
- });
- Route::get('/karyawan','KaryawanController@index');
- Route::get('/home','KaryawanController@home');
- Route::get('/tentang','KaryawanController@tentang');
- Route::post('/karyawan/cari', 'KaryawanController@cari');
- Route::get('/karyawan/detail/{id}', 'KaryawanController@detail');
- Route::get('/karyawan/tambah', 'KaryawanController@tambah');
- Route::post('/karyawan/simpan', 'KaryawanController@simpan');
- Route::get('/karyawan/edit/{id}', 'KaryawanController@edit');
- Route::post('/karyawan/update', 'KaryawanController@update');
- Route::get('/karyawan/hapus/{id}', 'KaryawanController@hapus');
Advertisement
Add Comment
Please, Sign In to add comment