Initial commit

This commit is contained in:
Zakwan Hamdan
2020-10-19 10:12:55 +08:00
commit 60afe5d1ba
300 changed files with 144332 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
+18
View File
@@ -0,0 +1,18 @@
<?php
use Illuminate\Support\Facades\Broadcast;
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});
+19
View File
@@ -0,0 +1,19 @@
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');
+41
View File
@@ -0,0 +1,41 @@
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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('/',['as'=>'login','uses'=>'HomeController@index']);
// Auth::routes();
Route::middleware(['auth:juruwang,penilai,khazanah,PPC'])->group(function(){
});
Route::get('register', 'Auth\RegisterController@register');
Route::post('register', 'Auth\RegisterController@store');
Route::get('login', 'Auth\LoginController@login')->name('login');
Route::post('login', 'Auth\LoginController@authenticate');
Route::get('logout', 'Auth\LoginController@logout')->name('logout');
Route::get('/', 'HomeController@index')->name('home');
Route::get('/home', 'HomeController@index')->name('home');
Route::get('/pelanggan','CustomersController@index');
Route::get('/customer_info',['as'=>'customer_info','uses'=>'CustomersController@info']);
Route::get('/gadaian',['as'=>'gadaian','uses'=>'GadaianController@index']);
Route::get('/daftar_marhun','MarhunController@index');
Route::get('/penebusan','PenebusanController@index');
Route::get('/aliran_tunai','AliranTunaiController@index');
Route::get('/harga_emas','HargaEmasController@index');
Route::get('/profile',['as'=>'profile','uses'=>'UserController@index']);
Route::get('{user_type}/customer/search',['as'=>'customer.search','uses'=>'CustomersController@search']);
Route::post('{user_type}/customer/store',['as'=>'customer.store','uses'=>'CustomersController@store']);
Route::get('/test',['as'=>'test','uses'=>'CustomersController@test']);