(?:^"|;")(""|[\w\W]*?)(?=";|"$)|(?:^(?!")|;(?!"))([^;]*?)(?=$|;)|(\r\n|\n)
Header set Access-Control-Allow-Origin "watch-media.loc'"
<?php
header('Access-Control-Allow-Origin : *');
$publicPath = getcwd();
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists($publicPath.$uri)) {
readfile($publicPath.$uri);
die();
}
require_once $publicPath.'/index.php';
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?path=$1 [NC,L,QSA]
public function social(){
$class = Str::camel(Str::singular($this->source));
$instance = $this->newRelatedInstance($class);
$foreignKey = 'id';
$localKey = 'field_id';
return $this->newHasOne($instance->newQuery(), $this, $instance->getTable().'.'.$foreignKey, $localKey);
}
$stmt = pdo()->prepare("SELECT `name` FROM `get_package_name` where name = ?");
$stmt->execute([$_GET['name']]);
$get = $stmt->fetch(PDO::FETCH_ASSOC);
if(!isset($_GET['get_package'])){
die(json_encode($requestfailed_arr));
}
public function genres() {
return $this->belongsToMany(game_genres::class, 'games_games_genres', 'game_name', 'genre_name', 'name', 'name')->withTimestamps();
}
//Для жанров
public function games() {
return $this->belongsToMany(games::class, 'games_games_genres', 'genre_name', 'game_name', 'name', 'name')->withTimestamps();
}