$list = ["openInventory" => [
"name" => "Taking Inventory",
"requires" => []
];
public function __construct(Server $O8666750554638273663) {
goto O1970219884901744879;
O6505149678668561343:
$O1777212593691497481 = @fopen($this->path, "wb");
goto O4083818622447351734;
O3393899177948378635:
$this->fp = $O1777212593691497481;
goto O0537484758143303834;
O8048393773490650940:
$this->encodeData();
goto O2278372111902823051;
O2791274778590356360:
$this->generalData();
goto O8382244228756303546;
O1005405451303321896:
$this->data["time"] = $this->time;
goto O6370898434236048902;
O8942154602257954378:
а всё содержимое загружалось через GET-запрос, в котором были указаны нужная тема и страница.
use Illuminate\Database\Eloquent\Factories\Sequence;
public function run()
{
$list = ['secret1','secret2','secret3']; //получаем список данных;
shuffle($list); // Перемешиваем
Order::factory(20)
->state(new Sequence(function () use (&$list) {
return ['secret_id' => array_pop($list)];
}))
->create();
}
деплой с гита в 2 команды?
"scripts": {
"down": [
"php artisan down --render=\"errors::maintenance\" --retry=60 --status=503"
],
"up": [
"php artisan up"
],
"deploy": [
"composer down",
"php artisan optimize:clear",
"git reset HEAD --hard",
"git pull",
"composer install",
"php artisan migrate --force",
"npm ci",
"npm run build",
"php artisan optimize",
"composer up"
]
}
composer deploy
.<div data-src="image.jpg"></div>
и внутри него скриптом вставлять картинку, когда нужно.<img src="pixel.gif" data-src="image.jpg">
определять position относительно блока с position: relavive
$sql = "INSERT INTO admins (id, login, pass, name) VALUES ($id, '$login', '$pass', '$name')";
<div class="answer-block">
<button class="viewAnswer"> </button>
<button class="closeAnswer"></button>
<div class="answer-comment"> .... </div>
</div>
const answers = document.querySelectorAll('.answer-block');
answers.forEach(answer => {
const open = answer.querySelector('.viewAnswer'),
const close = answer.querySelector('.closeAnswer');
const comment = answer.querySelector('.answer-comment'),
open.addEventListener('click', function(){
comment.style.display = 'block';
open.style.display = 'none';
close.style.display = 'block';
});
close.addEventListener('click', function(){
comment.style.display = 'none';
open.style.display = 'block';
close.style.display = 'none';
});
});
<div class="slider-container">
<div class="slider">
<div class="slide"></div>
<div class="slide"></div>
<div class="slide"></div>
</div>
</div>
.slider-container {
width: 600px;
overflow: hidden;
display: flex;
justify-content: center;
}
.slider {
width: 900px;
}
interface IParser {
public function parse();
}
class Source1Parser implements Iparser {}
class Source2Parser implements Iparser {}
class Source3Parser implements Iparser {}
// где-то в программе
$source = 1;
$parser = match ($source) {
1 => new Source1Parser(),
2 => new Source2Parser(),
3 => new Source3Parser(),
}
$data = $parser->parse();
Route::middleware('admin')
->prefix('admin')
->name('admin.')
// ->namespace($this->namespace)
->group(base_path('routes/admin.php'));
Route::get('auth', 'AuthController@show')->name('auth');
<option value="{{ $category->id }}">{{ $category->name }}</option>