Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit bf51451

Browse files
authored
Upgrade Laravel framework to v12 (#3)
* Rename web crawling template file * Release v3.0.0 * Update author homepage * Remove composer.lock * Upgrade core package: laravel/framework to v12.0 * Remove yarn.lock * Upgrade JavaScript packages * Upgrade packages * Upgrade package: fakerphp/faker * Update composer.lock * Upgrade package: laravel/tinker * Update app.php * Update cache.php * Update database.php * Update filesystems.php * Add private folder * Update mail.php * Update queue.php * Update services.php * Update session.php * Update artisan * Update .htaccess * Update index.php * Update .env.example * Update description * Update Selenium Server version * Remove documentation already in Readme * Update Readme Misc * Update .gitignore * Create License * Update LIcense in composer.json
1 parent 4cdb969 commit bf51451

23 files changed

+1836
-1329
lines changed

.env.example

+6-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ APP_FALLBACK_LOCALE=en
1212
APP_FAKER_LOCALE=en_GB
1313

1414
APP_MAINTENANCE_DRIVER=file
15-
APP_MAINTENANCE_STORE=database
15+
# APP_MAINTENANCE_STORE=database
16+
17+
PHP_CLI_SERVER_WORKERS=4
1618

1719
BCRYPT_ROUNDS=12
1820

@@ -39,7 +41,7 @@ FILESYSTEM_DISK=local
3941
QUEUE_CONNECTION=database
4042

4143
CACHE_STORE=database
42-
CACHE_PREFIX=
44+
# CACHE_PREFIX=
4345

4446
MEMCACHED_HOST=127.0.0.1
4547

@@ -49,17 +51,17 @@ REDIS_PASSWORD=null
4951
REDIS_PORT=6379
5052

5153
MAIL_MAILER=log
54+
MAIL_SCHEME=null
5255
MAIL_HOST=127.0.0.1
5356
MAIL_PORT=2525
5457
MAIL_USERNAME=null
5558
MAIL_PASSWORD=null
56-
MAIL_ENCRYPTION=null
5759
MAIL_FROM_ADDRESS="[email protected]"
5860
MAIL_FROM_NAME="${APP_NAME}"
5961

6062
AWS_ACCESS_KEY_ID=
6163
AWS_SECRET_ACCESS_KEY=
62-
AWS_DEFAULT_REGION=us-east-1
64+
AWS_DEFAULT_REGION=eu-west-1
6365
AWS_BUCKET=
6466
AWS_USE_PATH_STYLE_ENDPOINT=false
6567

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
/public/hot
55
/public/storage
66
/storage/*.key
7+
/storage/pail
78
/vendor
89
.env
910
.env.backup
1011
.env.production
12+
.phpactor.json
1113
.phpunit.result.cache
1214
Homestead.json
1315
Homestead.yaml
@@ -16,5 +18,7 @@ npm-debug.log
1618
yarn-error.log
1719
/.fleet
1820
/.idea
21+
/.nova
1922
/.vscode
20-
drivers
23+
/.zed
24+
drivers

app/Console/Commands/App/MakeCrawler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MakeCrawler extends Command
2626

2727
protected $template = null;
2828

29-
protected $templateName = 'NewCrawler2024';
29+
protected $templateName = 'NewCrawler2025';
3030

3131
public function __construct()
3232
{

app/Console/Commands/BrowserScrape.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class BrowserScrape extends Command
3030
public function __construct()
3131
{
3232
parent::__construct();
33-
$capabilities = array( // See https://www.browserstack.com/docs/automate/capabilities
33+
$capabilities = array(
3434
"os" => "Windows",
3535
"os_version" => "11",
3636
"browser" => "Chrome",
@@ -67,15 +67,6 @@ public function __construct()
6767
);
6868
}
6969

70-
/**
71-
* @return string
72-
*/
73-
private function getInput() {
74-
$words = $this->ask('>>');
75-
$this->info($words);
76-
return $words;
77-
}
78-
7970
/**
8071
* Execute the console command.
8172
*
@@ -93,4 +84,13 @@ public function handle()
9384

9485
return 0;
9586
}
87+
88+
/**
89+
* @return string
90+
*/
91+
private function getInput() {
92+
$words = $this->ask('>>');
93+
$this->info($words);
94+
return $words;
95+
}
9696
}

artisan

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env php
22
<?php
33

4+
use Illuminate\Foundation\Application;
45
use Symfony\Component\Console\Input\ArgvInput;
56

67
define('LARAVEL_START', microtime(true));
@@ -9,7 +10,9 @@ define('LARAVEL_START', microtime(true));
910
require __DIR__.'/vendor/autoload.php';
1011

1112
// Bootstrap Laravel and handle the command...
12-
$status = (require_once __DIR__.'/bootstrap/app.php')
13-
->handleCommand(new ArgvInput);
13+
/** @var Application $app */
14+
$app = require_once __DIR__.'/bootstrap/app.php';
1415

15-
exit($status);
16+
$status = $app->handleCommand(new ArgvInput);
17+
18+
exit($status);

composer.json

+20-16
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44
{
55
"name": "Kelvin Kamara",
66
"email": "[email protected]",
7-
"homepage": "https://kelvinkamara.com"
7+
"homepage": "https://www.github.com/kkamara"
88
}
99
],
10-
"version": "2.0.0",
10+
"version": "3.0.0",
1111
"type": "project",
12-
"description": "(2022) Use PHP technologies to crawl and click buttons on websites with GUI. I highly recommend working with Linux (including virtual machines) or MacOs. Laravel 11.",
12+
"description": "(2022) Use PHP technologies to crawl and click buttons on websites with GUI. I highly recommend working with Linux (including virtual machines) or MacOs. Laravel 12.",
1313
"keywords": [
1414
"bot",
1515
"crawler",
1616
"laravel",
1717
"spider"
1818
],
19-
"license": "MIT",
19+
"license": "BSD-3-Clause",
2020
"require": {
2121
"php": "^8.2",
22-
"dbrekelmans/bdi": "^1.3",
23-
"laravel/framework": "^11.0",
24-
"laravel/sanctum": "^4.0",
25-
"laravel/tinker": "^2.9",
22+
"dbrekelmans/bdi": "^1.4",
23+
"laravel/framework": "^12.0",
24+
"laravel/sanctum": "^4.0.8",
25+
"laravel/tinker": "^2.10.1",
2626
"symfony/panther": "^2.1"
2727
},
2828
"require-dev": {
29-
"fakerphp/faker": "^1.23",
30-
"laravel/pint": "^1.13",
31-
"laravel/sail": "^1.26",
32-
"mockery/mockery": "^1.6",
33-
"nunomaduro/collision": "^8.0",
34-
"phpunit/phpunit": "^10.5",
35-
"spatie/laravel-ignition": "^2.4"
29+
"fakerphp/faker": "^1.24.1",
30+
"laravel/pint": "^1.21.0",
31+
"laravel/sail": "^1.41.0",
32+
"mockery/mockery": "^1.6.12",
33+
"nunomaduro/collision": "^8.6.1",
34+
"phpunit/phpunit": "^11.5.10",
35+
"spatie/laravel-ignition": "^2.9.1"
3636
},
3737
"autoload": {
3838
"psr-4": {
@@ -63,11 +63,15 @@
6363
],
6464
"post-install-cmd": [
6565
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\""
66+
],
67+
"dev": [
68+
"Composer\\Config::disableProcessTimeout",
69+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
6670
]
6771
},
6872
"extra": {
6973
"branch-alias": {
70-
"dev-master": "11.x-dev"
74+
"dev-master": "12.x-dev"
7175
},
7276
"laravel": {
7377
"dont-discover": []

0 commit comments

Comments
 (0)