Pesan Sekarang

alat perang laravel php

 

 

 #aneka route

Route::get('/','StudentController@index')->name('home');
Route::get('create','StudentController@create')->name('create');
Route::post('create','StudentController@store')->name('store');
Route::get('edit/{id}', 'StudentController@edit')->name('edit');
Route::post('update/{id}','StudentController@update')->name('update');
Route::delete('delete/{id}','StudentController@delete')->name('delete');

Route::resource('user', 'UserController');

Route::group(['prefix' => 'product'], function() {
Route::get('/', 'ProductController@index');
Route::get('/new', 'ProductController@create');
Route::post('/', 'ProductController@save');
Route::get('/{id}', 'ProductController@edit');
Route::put('/{id}', 'ProductController@update');
Route::delete('/{id}', 'ProductController@destroy');
});

Route::group(['middleware'=>'auth'], function(){
Route::get('blog', 'BlogController@index');
Route::get('kontak', 'BlogController@kontak');
Route::get('profil', 'BlogController@profil');

#Membuat database

php artisan make:migration create_users_table
php artisan migrate

 

 

#setting app dbnya (eloquent model)

 

protected $table = 'my_flights';

protected $table = 'blog';
 
public $timestamps = false;
 

 

 protected $guarded =[];

 ini tanpa syarat modelnya


Controller

php artisan make:controller namacontroller --resource  (route bersifat crud langsung)

cth :

php artisan make:controller UserController --resource
Route::resource('user', 'UserController');

php artisan make:controller [nama_controller]

php artisan route list

 

 

 

 

Harga Setiap Pemesanan Banner perlembar Rp. 15.000- :

Minimal Pemesanan 8 Lembar Item Banner

Untuk Pengambilan Banner bisa Langsung Hubungi No. Diatas

Post a Comment

 
Copyright © 2014. BukaBaju Template - Design: Gusti Adnyana