- XAMPP for Windows
- Download Win32 OpenSSL: https://slproweb.com/products/Win32OpenSSL.html Win32OpenSSL-1_0_2d.exe
<?php | |
//الملف ده اللى بيكون موجود فيه الدوال المساعده للشغل وغالبا بيكون مساره كالتالى | |
// app/helper/help.php | |
// ملحوظه (الملف ده انت اللى بتعمله عشان تحط جوا الفنكشنز اللى هتساعدك فى شغلك )0 | |
#================ search at sql text to regx ===================================== | |
function sql_text_to_regx($string){ | |
$alamat = array("+","=","-","_",")","(","*","&","^","%","$","#","@","!","/","\\","|",">","<","?","؟"); | |
$alamat_change = ""; | |
$alef = array("ا","أ","آ","إ"); | |
$alef_change = "@@@"; |
<?php | |
$url = "https://fcm.googleapis.com/fcm/send"; | |
$token = "your device token"; | |
$serverKey = 'your server token of FCM project'; | |
$title = "Notification title"; | |
$body = "Hello I am from Your php server"; | |
$notification = array('title' =>$title , 'text' => $body, 'sound' => 'default', 'badge' => '1'); | |
$arrayToSend = array('to' => $token, 'notification' => $notification,'priority'=>'high'); | |
$json = json_encode($arrayToSend); | |
$headers = array(); |
<?php | |
if(!function_exists('config_path')) | |
{ | |
/** | |
* Return the path to config files | |
* @param null $path | |
* @return string | |
*/ | |
function config_path($path=null) |
https
instead of http
Here is the key code for each key stroke in JavaScript. You can use that and detect if the user has pressed the Shift key. | |
backspace 8 | |
tab 9 | |
enter 13 | |
shift 16 | |
ctrl 17 | |
alt 18 | |
pause/break 19 | |
caps lock 20 |
<?php | |
namespace App\Models; | |
use Illuminate\Notifications\Notifiable; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
class EmployeeRestaurant extends Authenticatable | |
{ | |
protected $casts = [ |
<?php | |
//Don't forget to change the namespace! | |
namespace App\Traits; | |
use Cron\CronExpression; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Console\Scheduling\ManagesFrequencies; | |
trait Schedulable{ |
# see https://github.com/cmaessen/docker-php-sendmail for more information | |
FROM php:fpm | |
RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
RUN docker-php-ext-install mysql mysqli | |
RUN echo "hostname=localhost.localdomain" > /etc/ssmtp/ssmtp.conf | |
RUN echo "[email protected]" >> /etc/ssmtp/ssmtp.conf |
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Cookie; | |
use Illuminate\Support\Facades\Mail; | |
use Illuminate\Support\Facades\Session; | |
use Ratchet\WebSocket\Version\RFC6455\Connection; |