Skip to content

Instantly share code, notes, and snippets.

View zhi8617's full-sized avatar
🌴
On vacation

zhi8617

🌴
On vacation
View GitHub Profile
@zhi8617
zhi8617 / gist:5d9cc0e17c5bb8d390d232d06c490916
Last active May 23, 2023 06:53
This is test code here.
<?php
use App\Http\Controllers\CompanyController;
use App\Http\Livewire\Test;
Route::get('/', [CompanyController::class, 'store']);
Route::get('/test', Test::class)->name('test');
/// Test::class (Livewire)
<?php
#!/bin/bash
# Update the package list
sudo apt-get update
# Install FFmpeg from the Ubuntu repositories
sudo apt-get install -y ffmpeg
# Add the FFmpeg PPA to the system
sudo add-apt-repository -y ppa:jonathonf/ffmpeg-4
@zhi8617
zhi8617 / recursive
Last active September 4, 2020 21:51
\Illuminate\Support\Collection::macro('recursive', function () {
return $this->map(function ($value) {
if (is_array($value) || is_object($value)) {
return collect($value)->recursive();
}
return $value;