This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function filteruser( Request $request, user $user) | |
| { | |
| // dd($request->all()); | |
| $user = user::get(); | |
| if($request->filter =='category') { | |
| if ($request->category_id !== null) { | |
| $user = user::where('category_id', $request->category_id)->get(); | |
| } | |
| }else if($request->filter =='tag') { | |
| if ($request->tag_id !== null) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function status(Request $request) | |
| { | |
| $penjualan = penjualan::where('tanggal', $request->tanggal)->get(); | |
| return response()->json([ | |
| 'data' => $penjualan | |
| ]); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * PERHATIAN | |
| * SIMPAN DI FOLDER /system/libraries/Session/drivers/ file Session_files_driver.php | |
| * | |
| * An open source application development framework for PHP | |
| * | |
| * This content is released under the MIT License (MIT) | |
| * | |
| * Copyright (c) 2014 - 2017, British Columbia Institute of Technology |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| c:\xampp\mysql\bin\mysqldump --user=root --password= --result-file="d:\backup.sql" db_name | |
| C:\xampp\mysql\bin\mysql -u root -e "DROP DATABASE IF EXISTS db_name"; | |
| C:\xampp\mysql\bin\mysql -u root -e "CREATE DATABASE IF NOT EXISTS db_name"; | |
| echo Export is completed! | |
| pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| echo Starting Laravel instalation - require internet... | |
| echo Installing Laravel... | |
| call composer require "ext-gd:*" --ignore-platform-reqs | |
| call composer install --ignore-platform-req=ext-gd | |
| echo Choosing updating database driver in .env file... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $(document).ready(function () { | |
| var table = $('.asd').DataTable({ | |
| select: true, | |
| dom: 'Blfrtip', | |
| lengthMenu: [ | |
| [10, 25, 50, -1], | |
| ['10 Filas', '25 Filas', '50 Filas', 'Mostrar todo'] | |
| ], | |
| dom: 'Bfrtip', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $daftar_hari = [ | |
| 'Sunday' => 'Minggu', | |
| 'Monday' => 'Senin', | |
| 'Tuesday' => 'Selasa', | |
| 'Wednesday' => 'Rabu', | |
| 'Thursday' => 'Kamis', | |
| 'Friday' => 'Jumat', | |
| 'Saturday' => 'Sabtu', | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script type="text/javascript"> | |
| var labels = {{ Js::from($labels) }}; | |
| var users = {{ Js::from($data) }}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Facades\Auth; | |
| use App\Models\User; | |
| class CheckLevel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. | |
| <?php | |
| /* | |
| Pattern | |
| * | |
| ** | |
| *** | |
| **** | |
| ***** |