Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Route::get('nyoba', function () {
- return 'Hi, welcome to Laravel';
- });
- Route::get('tabung',function () {
- return view('Tabung.index');
- });
- Route::get('/Project1','Project1Controller@index');
- Route::post('/Project1/auth','Project1Controller@auth');
- Route::get('/','HomeController@index');
- Route::get('about','HomeController@about');
- //Route::get('karyawan','KaryawanController@karyawan');
- //Route::get('about','BelajarController@index');
- Route::get('karyawan','KaryawanController@index');
- Route::get('karyawan/create','KaryawanController@create');
- Route::post('karyawan/cari','KaryawanController@cari');
- 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('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' => '1998-01-22',
- '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('caridata','KaryawanController@search');
Advertisement
Add Comment
Please, Sign In to add comment