Skip to content

Instantly share code, notes, and snippets.

View haydar's full-sized avatar
🎯
Focusing

Haydar ŞAHİN haydar

🎯
Focusing
View GitHub Profile
@haydar
haydar / sitedrop.sh
Created September 24, 2020 23:07 — forked from jonathanbossenger/sitedrop.sh
Bash script to automatically decommission LAMP sites
#!/bin/bash
# Bash script to set drop local site created by sitesetup script
# See https://gist.github.com/jonathanbossenger/2dc5d5a00e20d63bd84844af89b1bbb4
if [[ $EUID -ne 0 ]];
then
echo "This script must be run as root"
exit 1
@haydar
haydar / sitesetup.sh
Last active July 15, 2021 02:19 — forked from jonathanbossenger/sitesetup.sh
Bash script to automatically provision LAMP sites
#!/bin/bash
# Bash script to set up local site using LAMP on Ubuntu
# Requires Apache2, MySQL, mkcert (https://github.com/FiloSottile/mkcert)
# See also sitedrop.sh https://gist.github.com/jonattanbossenger/4950e107b0004a8ee82aae8b123cce58
# This version improved by @haydar on github
if [[ $EUID -ne 0 ]];
then
$this->validate($request, array(
'audio'=>'required|mimes:mpga,m4a,mp4,m4r',
));
$this->validate($request, array(
'audio'=>'required|mimes:mp3,m4a,mp4,m4r',
));
namespace App\Listeners;
use App\Events\YeniKayit;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
class SendVerificitionMail
{
/**
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
protected $dispatchesEvents= [
'created'=>Events\YeniKayit::class,
];
php artisan event:generate
@haydar
haydar / EventServiceProvider'a yazılacak kodumuz
Last active September 29, 2018 18:06
EventServiceProvider'a yazılacak kodumuz
protected $listen = [
'App\Events\YeniKayit' => [
'App\Listeners\Yapilacakİslemler',
],
];