- Go to curret paper
- Open your "Chrome debug tool" via Netwrok tab
- Click right top button "Invite"
- You should see an request called "mark-user-active"
- Find Params and replace to curl command
Replace Below Params and WE FINALLY LEFT!!
#Put It In AppServiceProvider.php | |
<?php | |
use Illuminate\Database\Events\QueryExecuted; | |
use DB; | |
use Log; | |
... | |
public function boot() | |
{ |
UPDATE videos
SET views = CASE "id"
WHEN '13d2b117-15d7-4168-a545-a202206f149a' THEN 1
WHEN 'a8cf98c6-0413-4306-aabd-058db68097f9' THEN 2
END
WHERE "id" IN('13d2b117-15d7-4168-a545-a202206f149a', 'a8cf98c6-0413-4306-aabd-058db68097f9')
建立一個新的 Provider | |
<?php | |
namespace App\Providers; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Support\ServiceProvider; |
$s3 = \Illuminate\Support\Facades\Storage::disk('s3'); | |
$bucket = 'eatgether'; | |
# Get dir Files | |
$files = $s3->allFiles('news'); | |
$client = $s3->getDriver()->getAdapter()->getClient(); | |
$expiry = "+10 minutes"; | |
$result = []; |
`....```` ` ```` `` .` | |
.`.````` ` .. | |
.`` `` .. .. | |
.` ` `..` -. | |
`` ` `` `````` ` .` | |
` ` ```````````` .` `. | |
` . ``-` . |
3340:Buy,1036:Buy,2003:StartHpPot,1027:Buy,1004:Buy,3070:Buy,1037:Buy,3004:Buy,1001:Buy,2003:StopHpPot,3044:Buy,3057:Buy,3101:Buy,3078:Buy,1053:Buy,3144:Buy,1043:Buy,3153:Buy,3006:Buy,3087:Buy,3046:Buy |
-- ---------------------------- | |
-- Table structure for country_codes | |
-- ---------------------------- | |
DROP TABLE IF EXISTS "public"."country_codes"; | |
CREATE TABLE "public"."country_codes" ( | |
"id" int4 NOT NULL DEFAULT nextval('country_codes_id_seq'::regclass), | |
"country" varchar(255) NOT NULL COLLATE "default", | |
"dialing_code" int4 NOT NULL, | |
"country_code" varchar(255) NOT NULL COLLATE "default" | |
) |