This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## edit .zshrc | |
## sudo nano ~/.zshrc | |
## Add these lines at the bottom of file | |
## save and exit | |
## run command (source ~/.zshrc) | |
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail' | |
alias sa='sail artisan' | |
alias samod="sail artisan make:model" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solution From https://github.com/dompdf/dompdf/issues/712#issuecomment-492469206 | |
I 'm working with symfony and I found finally a solution to my example with mixed french and arabic language in table with dompdf | |
in the project make command : | |
composer require ar-php/ar-php | |
open the file Glyphs.php in the follow path : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After Setup laravel websockets with port 6003 and letsencrypt certs on ubuntu 18.4 LTS. | |
Note: change domain.test with your domain | |
edit .env | |
``` | |
PUSHER_APP_ID=myId | |
PUSHER_APP_KEY=myKey | |
PUSHER_APP_SECRET=mySecret | |
PUSHER_APP_CLUSTER=eu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Be right back.</title> | |
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css"> | |
<style> | |
html, body { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CheckSiteStatus | |
{ | |
/** | |
* Handle an incoming request. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Closure $next | |
* @return mixed | |
*/ | |
public function handle($request, Closure $next) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function word_limiter($str, $limit = 100, $end_char = '…'){ | |
$str2 = strip_tags($str); | |
//$str2 = $str; | |
if (trim($str2) == ''){ | |
return $str2; | |
} | |
preg_match('/^\s*+(?:\S++\s*+){1,'.(int) $limit.'}/', $str2, $matches); | |
if (strlen($str2) == strlen($matches[0])){ | |
$end_char = ''; |