Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/uploads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: "8.2.13"
php-version: "8.4"
- uses: actions/[email protected]
# - name: Copy .env
# run: php -r "file_exists('.env') || copy('.env.example', '.env');"
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/VerifyCsrfToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Http\Middleware;

use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery as Middleware;

class VerifyCsrfToken extends Middleware
{
Expand Down
5 changes: 2 additions & 3 deletions app/Services/CompanyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use App\Models\Company;
use App\Traits\companyPreviewTrait;
use Cloudinary\Api\Upload\UploadApi;
use CloudinaryLabs\CloudinaryLaravel\Facades\Cloudinary;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
Expand All @@ -30,13 +29,13 @@ public function storeCompanyData(Request $request, Company $company)
try {
$companyData = $request->all();
if ($request->has('logo')) {
$logoUrl = Cloudinary::upload(
$logoUrl = (new UploadApi(config('cloudinary.cloud_url')))->upload(
$request->file('logo')->getRealPath(),
[
'folder' => 'wcsLogos',
'public_id' => $request->name,
]
)->getSecurePath();
)['secure_url'];
$companyData = $request->except('logo');
$companyData['logo'] = $logoUrl;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Services/Scraper/Scraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Services\Scraper;

use Goutte\Client;
use Symfony\Component\BrowserKit\HttpBrowser as Client;
use Illuminate\Http\Request;

use App\Models\Company;
Expand Down
2 changes: 1 addition & 1 deletion app/Services/Scraper/ScraperBE.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Services\Scraper;

use Goutte\Client;
use Symfony\Component\BrowserKit\HttpBrowser as Client;
use Illuminate\Http\Request;

use App\Helpers\Backend;
Expand Down
33 changes: 18 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,33 @@
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"aws/aws-sdk-php": "^3.269",
"cloudinary-labs/cloudinary-laravel": "^2.0",
"cloudinary/cloudinary_php": "^2.12",
"donatello-za/rake-php-plus": "^1.0",
"guzzlehttp/guzzle": "^7.8",
"laravel/framework": "^10.0",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"laravel/ui": "^4.2",
"maatwebsite/excel": "^3.1",
"laravel/framework": "^13.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^3.0",
"laravel/ui": "^4.6",
"maatwebsite/excel": "^4.0",
"orhanerday/open-ai": "^4.7",
"php": "^8.3",
"php-http/guzzle7-adapter": "^1.0",
"php-http/httplug": "^2.4",
"stripe/stripe-php": "^15.10",
"weidner/goutte": "^2.3"
"symfony/browser-kit": "^7.4|^8.0",
"symfony/css-selector": "^7.4|^8.0",
"symfony/dom-crawler": "^7.4|^8.0",
"symfony/http-client": "^7.4|^8.0"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
"fakerphp/faker": "^1.23",
"laravel/pint": "^1.30",
"laravel/sail": "^1.67",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
"phpunit/phpunit": "^12.0",
"spatie/laravel-ignition": "^2.9"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading