Début de MyX
This commit is contained in:
30
app/Http/Controllers/FakeController.php
Normal file
30
app/Http/Controllers/FakeController.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Fake;
|
||||||
|
use Revolution\Google\Sheets\Facades\Sheets;
|
||||||
|
|
||||||
|
class FakeController extends Controller
|
||||||
|
{
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$sheets = Sheets::spreadsheet('1sXZ6fdljhv3byCvX9w_eG9hxXzeg9wlGWcWGxl4-_Xc')->sheet('Public')->get();
|
||||||
|
$header = $sheets->pull(0);
|
||||||
|
$posts = Sheets::collection($header, $sheets);
|
||||||
|
$organizers = $posts->toArray();
|
||||||
|
|
||||||
|
foreach ($organizers as $organizer){
|
||||||
|
$screen_name = $organizer['@'];
|
||||||
|
$screen_name = str_replace('@', '', $screen_name);
|
||||||
|
|
||||||
|
$exist = Fake::where('screen_name', $screen_name)->first();
|
||||||
|
|
||||||
|
if(!$exist){
|
||||||
|
Fake::create([
|
||||||
|
'screen_name' => $screen_name
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
18
app/Models/Account.php
Normal file
18
app/Models/Account.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Account extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
public $casts = [
|
||||||
|
'password' => 'encrypted',
|
||||||
|
'cookies' => 'encrypted',
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $guarded = ['id'];
|
||||||
|
}
|
||||||
18
app/Models/Category.php
Normal file
18
app/Models/Category.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Category extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
|
||||||
|
public function contests()
|
||||||
|
{
|
||||||
|
return $this->hasMany(Contest::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
22
app/Models/Contest.php
Normal file
22
app/Models/Contest.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Contest extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $guarded = [];
|
||||||
|
|
||||||
|
public function category()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Category::class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function organizer()
|
||||||
|
{
|
||||||
|
return $this->belongsTo(Organizer::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
14
app/Models/Fake.php
Normal file
14
app/Models/Fake.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Fake extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
|
||||||
|
}
|
||||||
18
app/Models/Organizer.php
Normal file
18
app/Models/Organizer.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class Organizer extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $guarded = [];
|
||||||
|
|
||||||
|
public function contests()
|
||||||
|
{
|
||||||
|
return $this->hasMany(Contest::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,7 +7,8 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"laravel/framework": "^11.9",
|
"laravel/framework": "^11.9",
|
||||||
"laravel/tinker": "^2.9"
|
"laravel/tinker": "^2.9",
|
||||||
|
"revolution/laravel-google-sheets": "^7.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"fakerphp/faker": "^1.23",
|
"fakerphp/faker": "^1.23",
|
||||||
|
|||||||
578
composer.lock
generated
578
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "7e8c3c14ff33b199b4a0838993eb8423",
|
"content-hash": "0d74b676df02a66825256edefb13ef7d",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "brick/math",
|
"name": "brick/math",
|
||||||
@@ -506,6 +506,69 @@
|
|||||||
],
|
],
|
||||||
"time": "2023-10-06T06:47:41+00:00"
|
"time": "2023-10-06T06:47:41+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "firebase/php-jwt",
|
||||||
|
"version": "v6.10.1",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/firebase/php-jwt.git",
|
||||||
|
"reference": "500501c2ce893c824c801da135d02661199f60c5"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
|
||||||
|
"reference": "500501c2ce893c824c801da135d02661199f60c5",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "^8.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"guzzlehttp/guzzle": "^7.4",
|
||||||
|
"phpspec/prophecy-phpunit": "^2.0",
|
||||||
|
"phpunit/phpunit": "^9.5",
|
||||||
|
"psr/cache": "^2.0||^3.0",
|
||||||
|
"psr/http-client": "^1.0",
|
||||||
|
"psr/http-factory": "^1.0"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-sodium": "Support EdDSA (Ed25519) signatures",
|
||||||
|
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Firebase\\JWT\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Neuman Vong",
|
||||||
|
"email": "neuman+pear@twilio.com",
|
||||||
|
"role": "Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Anant Narayanan",
|
||||||
|
"email": "anant@php.net",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
|
||||||
|
"homepage": "https://github.com/firebase/php-jwt",
|
||||||
|
"keywords": [
|
||||||
|
"jwt",
|
||||||
|
"php"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/firebase/php-jwt/issues",
|
||||||
|
"source": "https://github.com/firebase/php-jwt/tree/v6.10.1"
|
||||||
|
},
|
||||||
|
"time": "2024-05-18T18:05:11+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "fruitcake/php-cors",
|
"name": "fruitcake/php-cors",
|
||||||
"version": "v1.3.0",
|
"version": "v1.3.0",
|
||||||
@@ -577,6 +640,179 @@
|
|||||||
],
|
],
|
||||||
"time": "2023-10-12T05:21:21+00:00"
|
"time": "2023-10-12T05:21:21+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "google/apiclient",
|
||||||
|
"version": "v2.17.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/googleapis/google-api-php-client.git",
|
||||||
|
"reference": "b1f63d72c44307ec8ef7bf18f1012de35d8944ed"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/googleapis/google-api-php-client/zipball/b1f63d72c44307ec8ef7bf18f1012de35d8944ed",
|
||||||
|
"reference": "b1f63d72c44307ec8ef7bf18f1012de35d8944ed",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"firebase/php-jwt": "^6.0",
|
||||||
|
"google/apiclient-services": "~0.350",
|
||||||
|
"google/auth": "^1.37",
|
||||||
|
"guzzlehttp/guzzle": "^7.4.5",
|
||||||
|
"guzzlehttp/psr7": "^2.6",
|
||||||
|
"monolog/monolog": "^2.9||^3.0",
|
||||||
|
"php": "^8.0",
|
||||||
|
"phpseclib/phpseclib": "^3.0.36"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"cache/filesystem-adapter": "^1.1",
|
||||||
|
"composer/composer": "^1.10.23",
|
||||||
|
"phpcompatibility/php-compatibility": "^9.2",
|
||||||
|
"phpspec/prophecy-phpunit": "^2.1",
|
||||||
|
"phpunit/phpunit": "^9.6",
|
||||||
|
"squizlabs/php_codesniffer": "^3.8",
|
||||||
|
"symfony/css-selector": "~2.1",
|
||||||
|
"symfony/dom-crawler": "~2.1"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"cache/filesystem-adapter": "For caching certs and tokens (using Google\\Client::setCache)"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-main": "2.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"files": [
|
||||||
|
"src/aliases.php"
|
||||||
|
],
|
||||||
|
"psr-4": {
|
||||||
|
"Google\\": "src/"
|
||||||
|
},
|
||||||
|
"classmap": [
|
||||||
|
"src/aliases.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"Apache-2.0"
|
||||||
|
],
|
||||||
|
"description": "Client library for Google APIs",
|
||||||
|
"homepage": "http://developers.google.com/api-client-library/php",
|
||||||
|
"keywords": [
|
||||||
|
"google"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/googleapis/google-api-php-client/issues",
|
||||||
|
"source": "https://github.com/googleapis/google-api-php-client/tree/v2.17.0"
|
||||||
|
},
|
||||||
|
"time": "2024-07-10T14:57:54+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "google/apiclient-services",
|
||||||
|
"version": "v0.367.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/googleapis/google-api-php-client-services.git",
|
||||||
|
"reference": "edc08087aa3ca63d3b74f24d59f1d2caab39b5d9"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/edc08087aa3ca63d3b74f24d59f1d2caab39b5d9",
|
||||||
|
"reference": "edc08087aa3ca63d3b74f24d59f1d2caab39b5d9",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "^8.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^9.6"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"files": [
|
||||||
|
"autoload.php"
|
||||||
|
],
|
||||||
|
"psr-4": {
|
||||||
|
"Google\\Service\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"Apache-2.0"
|
||||||
|
],
|
||||||
|
"description": "Client library for Google APIs",
|
||||||
|
"homepage": "http://developers.google.com/api-client-library/php",
|
||||||
|
"keywords": [
|
||||||
|
"google"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/googleapis/google-api-php-client-services/issues",
|
||||||
|
"source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.367.0"
|
||||||
|
},
|
||||||
|
"time": "2024-07-11T01:08:44+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "google/auth",
|
||||||
|
"version": "v1.41.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/googleapis/google-auth-library-php.git",
|
||||||
|
"reference": "1043ea18fe7f5dfbf5b208ce3ee6d6b6ab8cb038"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/1043ea18fe7f5dfbf5b208ce3ee6d6b6ab8cb038",
|
||||||
|
"reference": "1043ea18fe7f5dfbf5b208ce3ee6d6b6ab8cb038",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"firebase/php-jwt": "^6.0",
|
||||||
|
"guzzlehttp/guzzle": "^7.4.5",
|
||||||
|
"guzzlehttp/psr7": "^2.4.5",
|
||||||
|
"php": "^8.0",
|
||||||
|
"psr/cache": "^2.0||^3.0",
|
||||||
|
"psr/http-message": "^1.1||^2.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"guzzlehttp/promises": "^2.0",
|
||||||
|
"kelvinmo/simplejwt": "0.7.1",
|
||||||
|
"phpseclib/phpseclib": "^3.0.35",
|
||||||
|
"phpspec/prophecy-phpunit": "^2.1",
|
||||||
|
"phpunit/phpunit": "^9.6",
|
||||||
|
"sebastian/comparator": ">=1.2.3",
|
||||||
|
"squizlabs/php_codesniffer": "^3.5",
|
||||||
|
"symfony/process": "^6.0||^7.0",
|
||||||
|
"webmozart/assert": "^1.11"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"phpseclib/phpseclib": "May be used in place of OpenSSL for signing strings or for token management. Please require version ^2."
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Google\\Auth\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"Apache-2.0"
|
||||||
|
],
|
||||||
|
"description": "Google Auth Library for PHP",
|
||||||
|
"homepage": "http://github.com/google/google-auth-library-php",
|
||||||
|
"keywords": [
|
||||||
|
"Authentication",
|
||||||
|
"google",
|
||||||
|
"oauth2"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"docs": "https://googleapis.github.io/google-auth-library-php/main/",
|
||||||
|
"issues": "https://github.com/googleapis/google-auth-library-php/issues",
|
||||||
|
"source": "https://github.com/googleapis/google-auth-library-php/tree/v1.41.0"
|
||||||
|
},
|
||||||
|
"time": "2024-07-10T15:21:07+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "graham-campbell/result-type",
|
"name": "graham-campbell/result-type",
|
||||||
"version": "v1.1.3",
|
"version": "v1.1.3",
|
||||||
@@ -2318,6 +2554,123 @@
|
|||||||
],
|
],
|
||||||
"time": "2024-03-06T16:17:14+00:00"
|
"time": "2024-03-06T16:17:14+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "paragonie/constant_time_encoding",
|
||||||
|
"version": "v3.0.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/paragonie/constant_time_encoding.git",
|
||||||
|
"reference": "df1e7fde177501eee2037dd159cf04f5f301a512"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/df1e7fde177501eee2037dd159cf04f5f301a512",
|
||||||
|
"reference": "df1e7fde177501eee2037dd159cf04f5f301a512",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": "^8"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^9",
|
||||||
|
"vimeo/psalm": "^4|^5"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"ParagonIE\\ConstantTime\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Paragon Initiative Enterprises",
|
||||||
|
"email": "security@paragonie.com",
|
||||||
|
"homepage": "https://paragonie.com",
|
||||||
|
"role": "Maintainer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Steve 'Sc00bz' Thomas",
|
||||||
|
"email": "steve@tobtu.com",
|
||||||
|
"homepage": "https://www.tobtu.com",
|
||||||
|
"role": "Original Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)",
|
||||||
|
"keywords": [
|
||||||
|
"base16",
|
||||||
|
"base32",
|
||||||
|
"base32_decode",
|
||||||
|
"base32_encode",
|
||||||
|
"base64",
|
||||||
|
"base64_decode",
|
||||||
|
"base64_encode",
|
||||||
|
"bin2hex",
|
||||||
|
"encoding",
|
||||||
|
"hex",
|
||||||
|
"hex2bin",
|
||||||
|
"rfc4648"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"email": "info@paragonie.com",
|
||||||
|
"issues": "https://github.com/paragonie/constant_time_encoding/issues",
|
||||||
|
"source": "https://github.com/paragonie/constant_time_encoding"
|
||||||
|
},
|
||||||
|
"time": "2024-05-08T12:36:18+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "paragonie/random_compat",
|
||||||
|
"version": "v9.99.100",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/paragonie/random_compat.git",
|
||||||
|
"reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a",
|
||||||
|
"reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">= 7"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "4.*|5.*",
|
||||||
|
"vimeo/psalm": "^1"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Paragon Initiative Enterprises",
|
||||||
|
"email": "security@paragonie.com",
|
||||||
|
"homepage": "https://paragonie.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
|
||||||
|
"keywords": [
|
||||||
|
"csprng",
|
||||||
|
"polyfill",
|
||||||
|
"pseudorandom",
|
||||||
|
"random"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"email": "info@paragonie.com",
|
||||||
|
"issues": "https://github.com/paragonie/random_compat/issues",
|
||||||
|
"source": "https://github.com/paragonie/random_compat"
|
||||||
|
},
|
||||||
|
"time": "2020-10-15T08:29:30+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "phpoption/phpoption",
|
"name": "phpoption/phpoption",
|
||||||
"version": "1.9.3",
|
"version": "1.9.3",
|
||||||
@@ -2393,6 +2746,165 @@
|
|||||||
],
|
],
|
||||||
"time": "2024-07-20T21:41:07+00:00"
|
"time": "2024-07-20T21:41:07+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "phpseclib/phpseclib",
|
||||||
|
"version": "3.0.39",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/phpseclib/phpseclib.git",
|
||||||
|
"reference": "211ebc399c6e73c225a018435fe5ae209d1d1485"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/211ebc399c6e73c225a018435fe5ae209d1d1485",
|
||||||
|
"reference": "211ebc399c6e73c225a018435fe5ae209d1d1485",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"paragonie/constant_time_encoding": "^1|^2|^3",
|
||||||
|
"paragonie/random_compat": "^1.4|^2.0|^9.99.99",
|
||||||
|
"php": ">=5.6.1"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "*"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-dom": "Install the DOM extension to load XML formatted public keys.",
|
||||||
|
"ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.",
|
||||||
|
"ext-libsodium": "SSH2/SFTP can make use of some algorithms provided by the libsodium-php extension.",
|
||||||
|
"ext-mcrypt": "Install the Mcrypt extension in order to speed up a few other cryptographic operations.",
|
||||||
|
"ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations."
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"files": [
|
||||||
|
"phpseclib/bootstrap.php"
|
||||||
|
],
|
||||||
|
"psr-4": {
|
||||||
|
"phpseclib3\\": "phpseclib/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jim Wigginton",
|
||||||
|
"email": "terrafrost@php.net",
|
||||||
|
"role": "Lead Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Patrick Monnerat",
|
||||||
|
"email": "pm@datasphere.ch",
|
||||||
|
"role": "Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Andreas Fischer",
|
||||||
|
"email": "bantu@phpbb.com",
|
||||||
|
"role": "Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Hans-Jürgen Petrich",
|
||||||
|
"email": "petrich@tronic-media.com",
|
||||||
|
"role": "Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Graham Campbell",
|
||||||
|
"email": "graham@alt-three.com",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.",
|
||||||
|
"homepage": "http://phpseclib.sourceforge.net",
|
||||||
|
"keywords": [
|
||||||
|
"BigInteger",
|
||||||
|
"aes",
|
||||||
|
"asn.1",
|
||||||
|
"asn1",
|
||||||
|
"blowfish",
|
||||||
|
"crypto",
|
||||||
|
"cryptography",
|
||||||
|
"encryption",
|
||||||
|
"rsa",
|
||||||
|
"security",
|
||||||
|
"sftp",
|
||||||
|
"signature",
|
||||||
|
"signing",
|
||||||
|
"ssh",
|
||||||
|
"twofish",
|
||||||
|
"x.509",
|
||||||
|
"x509"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/phpseclib/phpseclib/issues",
|
||||||
|
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.39"
|
||||||
|
},
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://github.com/terrafrost",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://www.patreon.com/phpseclib",
|
||||||
|
"type": "patreon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://tidelift.com/funding/github/packagist/phpseclib/phpseclib",
|
||||||
|
"type": "tidelift"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2024-06-24T06:27:33+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "psr/cache",
|
||||||
|
"version": "3.0.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/php-fig/cache.git",
|
||||||
|
"reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf",
|
||||||
|
"reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=8.0.0"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.0.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Psr\\Cache\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "PHP-FIG",
|
||||||
|
"homepage": "https://www.php-fig.org/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Common interface for caching libraries",
|
||||||
|
"keywords": [
|
||||||
|
"cache",
|
||||||
|
"psr",
|
||||||
|
"psr-6"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"source": "https://github.com/php-fig/cache/tree/3.0.0"
|
||||||
|
},
|
||||||
|
"time": "2021-02-03T23:26:27+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/clock",
|
"name": "psr/clock",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
@@ -3109,6 +3621,70 @@
|
|||||||
],
|
],
|
||||||
"time": "2024-04-27T21:32:50+00:00"
|
"time": "2024-04-27T21:32:50+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "revolution/laravel-google-sheets",
|
||||||
|
"version": "7.0.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/kawax/laravel-google-sheets.git",
|
||||||
|
"reference": "233f7e1dfac54bc9fc68049b7e11469643a791d0"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/kawax/laravel-google-sheets/zipball/233f7e1dfac54bc9fc68049b7e11469643a791d0",
|
||||||
|
"reference": "233f7e1dfac54bc9fc68049b7e11469643a791d0",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"google/apiclient": "^2.16",
|
||||||
|
"illuminate/container": "^11.0",
|
||||||
|
"illuminate/support": "^11.0",
|
||||||
|
"php": "^8.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"orchestra/testbench": "^9.0",
|
||||||
|
"pulkitjalan/google-apiclient": "^6.2"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"providers": [
|
||||||
|
"Revolution\\Google\\Sheets\\Providers\\SheetsServiceProvider",
|
||||||
|
"Revolution\\Google\\Client\\Providers\\GoogleServiceProvider"
|
||||||
|
],
|
||||||
|
"google/apiclient-services": [
|
||||||
|
"Drive",
|
||||||
|
"Sheets"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Revolution\\Google\\Client\\": "lib/google/",
|
||||||
|
"Revolution\\Google\\Sheets\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "kawax",
|
||||||
|
"email": "kawaxbiz@gmail.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Google Sheets API v4",
|
||||||
|
"keywords": [
|
||||||
|
"google",
|
||||||
|
"laravel",
|
||||||
|
"sheets"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"source": "https://github.com/kawax/laravel-google-sheets/tree/7.0.2"
|
||||||
|
},
|
||||||
|
"time": "2024-07-16T06:17:05+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/clock",
|
"name": "symfony/clock",
|
||||||
"version": "v7.1.1",
|
"version": "v7.1.1",
|
||||||
|
|||||||
270
config/twitter.php
Normal file
270
config/twitter.php
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
'word_nocopy' => [
|
||||||
|
'+ #',
|
||||||
|
'avec #',
|
||||||
|
'le #',
|
||||||
|
],
|
||||||
|
|
||||||
|
'word_special_comment' => [
|
||||||
|
'commenter avec',
|
||||||
|
'commentez avec',
|
||||||
|
'commente avec',
|
||||||
|
'commentez',
|
||||||
|
'commenter',
|
||||||
|
'en commentaire',
|
||||||
|
'dans les commentaires',
|
||||||
|
'commente',
|
||||||
|
'écrit',
|
||||||
|
'écrire',
|
||||||
|
'dites',
|
||||||
|
"réponds",
|
||||||
|
'répondez',
|
||||||
|
'réponder',
|
||||||
|
'repondre avec',
|
||||||
|
'précise',
|
||||||
|
'donne',
|
||||||
|
'dit',
|
||||||
|
'dites-nous',
|
||||||
|
'dis nous',
|
||||||
|
'dis-nous',
|
||||||
|
'dites nous',
|
||||||
|
'dites-nous',
|
||||||
|
'tweet #',
|
||||||
|
'quelle',
|
||||||
|
],
|
||||||
|
|
||||||
|
'word_comment' => [
|
||||||
|
'+ #',
|
||||||
|
'avec #',
|
||||||
|
'le #',
|
||||||
|
'mentionnez #',
|
||||||
|
'mentionne',
|
||||||
|
'mentionner',
|
||||||
|
'commente',
|
||||||
|
'comment',
|
||||||
|
'commentaire',
|
||||||
|
'commentant',
|
||||||
|
'écrit',
|
||||||
|
'écrire',
|
||||||
|
'dites',
|
||||||
|
'dis',
|
||||||
|
'cite',
|
||||||
|
'donne',
|
||||||
|
'tweet avec',
|
||||||
|
'tweetent avec',
|
||||||
|
'tweetent : avec',
|
||||||
|
'tweet : avec',
|
||||||
|
'hashtag',
|
||||||
|
'répond',
|
||||||
|
'indique',
|
||||||
|
'tweet avec',
|
||||||
|
],
|
||||||
|
|
||||||
|
'word_tag' => [
|
||||||
|
'invit',
|
||||||
|
'mention',
|
||||||
|
'tag',
|
||||||
|
'#tag',
|
||||||
|
'identif',
|
||||||
|
'désign',
|
||||||
|
'@ un',
|
||||||
|
'@ une',
|
||||||
|
'@ tes',
|
||||||
|
'@ 1',
|
||||||
|
'@ deux',
|
||||||
|
'@ 2',
|
||||||
|
'@ plusieurs',
|
||||||
|
],
|
||||||
|
|
||||||
|
'one_people_list' => [
|
||||||
|
"@ un",
|
||||||
|
"@ 1",
|
||||||
|
"tag un",
|
||||||
|
"tag a",
|
||||||
|
"tag 1",
|
||||||
|
"tag ton",
|
||||||
|
"tag ton",
|
||||||
|
"tag ta",
|
||||||
|
"tag la",
|
||||||
|
"un ami",
|
||||||
|
"un copain",
|
||||||
|
"une personne",
|
||||||
|
"la personne",
|
||||||
|
"un pote",
|
||||||
|
"1 pote",
|
||||||
|
"1 ami",
|
||||||
|
"1 copain",
|
||||||
|
"1 personne",
|
||||||
|
"un(e) ami(e)",
|
||||||
|
"un.e ami.e",
|
||||||
|
"quelqu'un",
|
||||||
|
"un fan",
|
||||||
|
"1 fan",
|
||||||
|
"un(e) pote",
|
||||||
|
"un(e) pote"
|
||||||
|
],
|
||||||
|
|
||||||
|
'two_people_list' => [
|
||||||
|
"tag deux",
|
||||||
|
"tag 2",
|
||||||
|
"@ deux",
|
||||||
|
"@ 2",
|
||||||
|
"2 amis",
|
||||||
|
"2 ami(e)s",
|
||||||
|
"2 ami",
|
||||||
|
"2 personnes",
|
||||||
|
"2 potes",
|
||||||
|
"deux amis",
|
||||||
|
"deux ami(e)s",
|
||||||
|
"deux ami",
|
||||||
|
"deux personnes",
|
||||||
|
"deux potes"
|
||||||
|
],
|
||||||
|
|
||||||
|
'three_or_more_people_list' => [
|
||||||
|
"3 amis",
|
||||||
|
"3 ami(e)s",
|
||||||
|
"3 ami",
|
||||||
|
"3 personnes",
|
||||||
|
"3 potes",
|
||||||
|
"trois amis",
|
||||||
|
"trois ami(e)s",
|
||||||
|
"trois ami",
|
||||||
|
"trois personnes",
|
||||||
|
"trois potes",
|
||||||
|
"tes amis",
|
||||||
|
"des amis",
|
||||||
|
"tes potes",
|
||||||
|
"des potes"
|
||||||
|
],
|
||||||
|
|
||||||
|
'sentence_for_tag' => [
|
||||||
|
"J'invite : ",
|
||||||
|
"Merci ! je tag : ",
|
||||||
|
"Je tag : ",
|
||||||
|
"Hop Hop, j'invite : ",
|
||||||
|
"Avec moi : ",
|
||||||
|
"Help me : ",
|
||||||
|
"Pour vous aussi les gars : ",
|
||||||
|
"tentez votre chance ! ",
|
||||||
|
"Je tente ma chance ! J'espère que je vais gagner ! ",
|
||||||
|
"J'espère que vais gagner ! ",
|
||||||
|
"Merci pour le concours ! Essayez aussi : ",
|
||||||
|
"Que la chance soit avec moi ! et vous ",
|
||||||
|
"Merci d'organiser ce concours ! Ça peut vous intéresser ",
|
||||||
|
"On croise les doigts ! vous aussi ",
|
||||||
|
"C'est pour vous ça ! : ",
|
||||||
|
"Celui là on le gagne ",
|
||||||
|
"J'espère que vais gagner ! On participe ! ",
|
||||||
|
"Merci d'organiser ce concours ! ",
|
||||||
|
"Bonne chance à tous ! ",
|
||||||
|
"J'adore les concours et je sais que vous aussi ",
|
||||||
|
"J'ai tellement envie de gagner, essayez vous aussi ",
|
||||||
|
"Je participe et j'invite ",
|
||||||
|
"Bonjour je participe avec plaisir. Merci pour ce concours et bonne journée ! ",
|
||||||
|
"Merci beaucoup j'adore votre compte. Je vous souhaite une belle continuation. J'invite ",
|
||||||
|
"Bonjour je participe avec plaisir à ce super concours et j'invite ",
|
||||||
|
"Superbe ! Je tente ma chance bien volontiers et j'invite ",
|
||||||
|
"Chouette bonjour je participe avec plaisir avec ",
|
||||||
|
"Bonjour je tente ma chance avec ",
|
||||||
|
"Bonjour, Je tente ma chance bien volontiers et j'invite ",
|
||||||
|
"Merci beaucoup pour ce super concours, je tague ",
|
||||||
|
"Bonjour génial ! Je tente ma chance et j'identifie ",
|
||||||
|
"Merci ! J'invite ",
|
||||||
|
"Hello !!! Merci beaucoup je tente ma chance merci et bonne journée ! Je tague ",
|
||||||
|
"Bonjour je participe avec plaisir pour ce beau cadeau et j'invite ",
|
||||||
|
"Bonjour et merci pour ce super concours :) j'invite ",
|
||||||
|
"Bonjour, trop Sympa ce concours. Essayez-vous aussi ",
|
||||||
|
"Je tag mes amis ",
|
||||||
|
"On tente encore et encore ",
|
||||||
|
"Je tente ma chance aux côtés de ",
|
||||||
|
"Ça vous intéressent ? ",
|
||||||
|
"Qu'est ce que vous en pensez ? Allez participez-vous aussi ",
|
||||||
|
"Let's go, je suis sûr qu'on va gagner cette fois :) "
|
||||||
|
],
|
||||||
|
|
||||||
|
'sentence_for_random_comment' => [
|
||||||
|
"Merci ! ",
|
||||||
|
"Je participe ",
|
||||||
|
"Hop Hop ",
|
||||||
|
"Que la force soit avec moi ",
|
||||||
|
"Je tente ma chance ! J'espère que je vais gagner ! ",
|
||||||
|
"J'espère que vais gagner ! ",
|
||||||
|
"Merci pour le concours ! ",
|
||||||
|
"Que la chance soit avec moi ! ",
|
||||||
|
"Merci d'organiser ce concours ! ",
|
||||||
|
"On croise les doigts ! ",
|
||||||
|
"C'est pour moi ça ! ",
|
||||||
|
"Celui là on le gagne ",
|
||||||
|
"J'espère que vais gagner ! Je participe ! ",
|
||||||
|
"Merci d'organiser ce concours ! ",
|
||||||
|
"Bonne chance à tous ! ",
|
||||||
|
"J'adore les concours et surtout celui-ci ",
|
||||||
|
"J'ai tellement envie de gagner ",
|
||||||
|
"Bonjour je participe avec plaisir. Merci pour ce concours et bonne journée ! ",
|
||||||
|
"Merci beaucoup pour j'adore votre compte. Je vous souhaite une belle continuation ",
|
||||||
|
"Bonjour je participe avec plaisir à ce super concours ",
|
||||||
|
"Superbe ! Je tente ma chance bien volontiers ",
|
||||||
|
"Chouette bonjour je participe avec plaisir ",
|
||||||
|
"Bonjour je tente ma chance ",
|
||||||
|
"Bonjour, Je tente ma chance bien volontiers ",
|
||||||
|
"Merci beaucoup pour ce super concours ",
|
||||||
|
"Bonjour génial ! Je tente ma chance ",
|
||||||
|
"Hello !!! Merci beaucoup je tente ma chance ",
|
||||||
|
"Bonjour je participe avec plaisir pour ce beau cadeau ",
|
||||||
|
"Bonjour et merci pour ce super concours :) ",
|
||||||
|
"Bonjour, trop Sympa ce concours. ",
|
||||||
|
"On tente encore et encore ",
|
||||||
|
"Je tente ma chance même si je risque de ne pas gagner ",
|
||||||
|
"Ça vous intéresse ? ",
|
||||||
|
"Let's go, je suis sûr qu'on va gagner cette fois :) "
|
||||||
|
],
|
||||||
|
|
||||||
|
'hashtag_to_blacklist' => [
|
||||||
|
"#giveaway",
|
||||||
|
"#concours",
|
||||||
|
"#rt",
|
||||||
|
"#follow",
|
||||||
|
"#jeuconcours",
|
||||||
|
"#jeu",
|
||||||
|
"#jeux",
|
||||||
|
"#cadeau",
|
||||||
|
"#cadeaux",
|
||||||
|
"#concour",
|
||||||
|
"#giveway",
|
||||||
|
"#tweet",
|
||||||
|
"#commente",
|
||||||
|
"#followers",
|
||||||
|
"#follower",
|
||||||
|
"#twitter",
|
||||||
|
"#tag",
|
||||||
|
"#jeuxconcours",
|
||||||
|
"#giveawayalert",
|
||||||
|
"#retweet",
|
||||||
|
"#mentionne",
|
||||||
|
"#kdo",
|
||||||
|
"#gratuit",
|
||||||
|
"#cadeaunoel",
|
||||||
|
"#annonce",
|
||||||
|
"#noel",
|
||||||
|
"#joyeuxnoel"
|
||||||
|
],
|
||||||
|
|
||||||
|
'giveaway_to_blacklist' => [
|
||||||
|
"nude",
|
||||||
|
'nft',
|
||||||
|
"anal",
|
||||||
|
"sex",
|
||||||
|
"sorare",
|
||||||
|
"freebet",
|
||||||
|
"mint",
|
||||||
|
"freemint",
|
||||||
|
'paysafecard',
|
||||||
|
'prompt',
|
||||||
|
'freebets',
|
||||||
|
'rtbf'
|
||||||
|
],
|
||||||
|
|
||||||
|
];
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('contests', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->foreignId('category_id')->index();
|
||||||
|
$table->foreignId('organizer_id')->index();
|
||||||
|
$table->mediumText('description')->nullable();
|
||||||
|
$table->string('picture')->nullable();
|
||||||
|
$table->string('url');
|
||||||
|
$table->string('tweetid');
|
||||||
|
$table->date('fin');
|
||||||
|
$table->string('nbretweet');
|
||||||
|
$table->string('nblike');
|
||||||
|
$table->string('nbreply');
|
||||||
|
$table->boolean('participated')->default(false);
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('contests');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('accounts', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->boolean('enable')->default(true);
|
||||||
|
$table->string('name');
|
||||||
|
$table->string('password');
|
||||||
|
$table->mediumText('cookies')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('accounts');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('categories', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('title');
|
||||||
|
$table->string('slug');
|
||||||
|
$table->string('icon')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('categories');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('organizers', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('name');
|
||||||
|
$table->string('screen_name');
|
||||||
|
$table->mediumText('description');
|
||||||
|
$table->string('logo');
|
||||||
|
$table->string('url');
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('organizers');
|
||||||
|
}
|
||||||
|
};
|
||||||
28
database/migrations/2024_08_10_154356_create_fakes_table.php
Normal file
28
database/migrations/2024_08_10_154356_create_fakes_table.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('fakes', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('screen_name');
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('fakes');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::get('/', function () {
|
//Route::get('/', [\App\Http\Controllers\HomeController::class, 'index']);
|
||||||
return view('welcome');
|
//Route::get('/organizers', [\App\Http\Controllers\HomeController::class, 'organizers']);
|
||||||
});
|
//Route::get('/organizer/{screen}', [\App\Http\Controllers\HomeController::class, 'organizer']);
|
||||||
|
//Route::get('/category/{slug}', [\App\Http\Controllers\HomeController::class, 'category']);
|
||||||
|
//Route::get('/last-minutes', [\App\Http\Controllers\HomeController::class, 'lastminutes']);
|
||||||
|
//Route::get('/search', [\App\Http\Controllers\HomeController::class, 'search']);
|
||||||
|
//Route::get('/aplifier/list', [\App\Http\Controllers\ContestsController::class, 'twitterlist']);
|
||||||
|
//Route::get('/aplifier/search', [\App\Http\Controllers\ContestsController::class, 'searchcontest']);
|
||||||
|
|
||||||
|
Route::get('/fake', [\App\Http\Controllers\FakeController::class, 'index']);
|
||||||
|
|
||||||
|
//Route::get('/img/{path}', [\App\Http\Controllers\WebpController::class, 'show'])->where('path', '.*');
|
||||||
|
|||||||
Reference in New Issue
Block a user