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 | |
| // .... | |
| protected function mapWebRoutes() | |
| { | |
| Route::group([ | |
| 'middleware' => 'web', | |
| 'namespace' => $this->namespace, | |
| ], function ($router) { | |
| require base_path('routes/web/main.php'); | |
| require base_path('routes/web/backend.php'); |
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
| product = [{ product_id: ‘001’, name: ‘C4’ }]; | |
| stock = [{ stock_id: 1, product_id: ‘001’, cost: 1000, qty: 5 }]; | |
| trantsection = [ | |
| { trantsection_id: 1, stock_id: 1, qty: 5, datetime: '2019-03-24 12:00:00' }, | |
| ]; |
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
| product = [{ product_id: ‘001’, name: ‘C4’ }]; | |
| stock = [ | |
| { stock_id: 1, product_id: ‘001’, cost: 1000, qty: 2 }, | |
| { stock_id: 2, product_id: ‘001’, cost: 100, qty: 10 }, | |
| ]; | |
| trantsection = [ | |
| { trantsection_id: 1, stock_id: 1, qty: 5, datetime: '2019-03-24 12:00:00' }, | |
| { trantsection_id: 2, stock_id: 2, qty: 10, datetime: '2019-03-24 13:00:0' }, | |
| { trantsection_id: 3, stock_id: 1, qty: -3, datetime: '2019-03-24 14:00:0' }, | |
| ]; |
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
| product = [{ product_id: ‘001’, name: ‘C4’ }]; | |
| stock = [ | |
| { stock_id: 1, product_id: ‘001’, cost: 1000, qty: 5 }, | |
| { stock_id: 2, product_id: ‘001’, cost: 100, qty: 10 }, | |
| ]; | |
| trantsection = [ | |
| { trantsection_id: 1, stock_id: 1, qty: 5, datetime: '2019-03-24 12:00:00' }, | |
| { trantsection_id: 2, stock_id: 2, qty: 10, datetime: '2019-03-24 13:00:0' }, | |
| ]; |
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\Controllers; | |
| use Illuminate\Http\Request; | |
| use App\Http\Requests; | |
| use App\Http\Controllers\Controller; | |
| use Excel; | |
| use App\Models\Appointment; |
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
| version: '3' | |
| services: | |
| nginx: | |
| image: bitnami/nginx | |
| ports: | |
| - '8000:8080' | |
| - '443:8443' | |
| volumes: | |
| - ./etc/nginx/my_vhost.conf:/bitnami/nginx/conf/vhosts/my_vhost.conf | |
| - ./:/var/www/html |
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
| version: '2.2' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 | |
| container_name: elasticsearch | |
| environment: | |
| - cluster.name=docker-cluster | |
| - bootstrap.memory_lock=true | |
| - "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
| ulimits: |
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
| void setup() { | |
| pinMode(3, OUTPUT); | |
| pinMode(A0, INPUT); | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| int v = analogRead(A0); | |
| Serial.printIn(v); | |
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
| version: '3' | |
| services: | |
| mssql-server: | |
| image: microsoft/mssql-server-linux:2017-latest | |
| restart: always | |
| volumes: | |
| - ./sql:/sql | |
| environment: | |
| ACCEPT_EULA: Y | |
| SA_PASSWORD: Mssql123456 |
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
| USE master; | |
| GO | |
| IF DB_ID (N'source_db') IS NOT NULL | |
| DROP DATABASE source_db; | |
| GO | |
| CREATE DATABASE source_db | |
| COLLATE THAI_CI_AS; | |
| GO | |
| --Verify the collation setting. |