<?php
$directories = [
'absolute/path/to/dir',
'multiple/dirs/if/needed',
];
$extensions = [
'php',
];
function invalidateDirectory($dir) {
Using this plugin: maatwebsite/excel
composer require maatwebsite/excel
You can use this anywhere in your app.
<?php
- Install Docker - https://docs.docker.com/engine/install/ubuntu/
- Install Docker-Compose - https://docs.docker.com/compose/install/#install-compose Click Linux and follow the steps
First create a domain or subdomain to use. For example video.example.com Generate ssl with letsencrypt.
- First install maatwebsite/excel package:
composer require maatwebsite/excel
-
Copy
export.blade.php
from this gist inresources/views/vendor/backpack/crud/buttons/export.blade.php
-
Copy
ExportOperation.php
from this gist inapp/Traits/Operations/ExportOperation.php
cd /www/server/panel/install | |
bash ./install_soft.sh 1 install mysql mariadb_10.4 | |
bash ./install_soft.sh 1 install openlitespeed 1.7 |
You can follow microsoft's official instalation steps, however if you have multiple php instalations (I have php7.4 and 7.3 installed on my laravel forge server) you need to specify what version to build the extension with.
# make sure you have this installed:
sudo apt-get install -y unixodbc-dev
# elevate as root
sudo su
pecl -d php_suffix=7.3 install sqlsrv
pecl -d php_suffix=7.3 install pdo_sqlsrv
<?php | |
// inspired by https://github.com/imanghafoori1/laravel-video | |
// if you need this for video, this does not support seek. | |
// laravel-video supports seek and chunks, so use that for video. | |
Route::get('/big-file-stream', function () { | |
$filePath = \Storage::disk('local')->path('video.mp4'); | |
$fileStream = \Storage::disk('local')->readStream('video.mp4'); |
import { Component, For } from "solid-js"; | |
import moment from "moment"; | |
import "moment/dist/locale/ro"; | |
moment.locale("ro"); | |
const App: Component = () => { | |
const weekdays = moment.weekdaysMin(); | |
const months = moment.months(); | |
const fullYear = Object.fromEntries( | |
months.map((monthName, monthIndex) => { |
Install autorestic: https://autorestic.vercel.app/installation
Let's use /root/backup
to store our env file and autorestic config, make a data
folder inside to store the actual backups inside, and a temporary database
folder for MySQL dumps.
mkdir /root/backup