Пример #1
0
        } else {
            echo $compcat->id . '<br>';
            $component->compcatid = $compcat->id;
            //$component->save();
        }
    }
});
Route::get('filess', function () {
    $files = new Filesystem();
    return dd($files->exists(public_path() . '\\uploads\\test.zip'));
});
Route::get('timelog/{id}', function ($id) {
    //return App\Models\Timelog::with('employee')->where('id',$id)->get();
    //$timelog = App\Models\Timelog::find($id);
    //return $timelog->employee()->get();
    $timelogs = App\Models\Timelog::with('employee')->where('id', $id)->get();
    return $timelogs[0];
});
Route::get('get_uid', function () {
    return App\Models\BaseModel::get_uid();
});
Route::get('sp', function () {
    $w = 'NA/A';
    return var_dump($w != 'NA/A' && $w != 'N/A');
});
Route::get('dbf/{year}/{loc}', function ($year, $loc) {
    //$db = dbase_open('Z:\POS_BACK\\'.$year.'\\'.$loc.'\END_BAL.DBF', 0);
    $db = dbase_open('D:\\GI\\TRI\\GC113015\\PAY_MAST.DBF', 0);
    if ($db) {
        $header = dbase_get_header_info($db);
        echo '<table cellpadding="2" cellspacing="0" border="1"><thead>';