This file contains 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
In Auth\LoginController you have: | |
use AuthenticatesUsers; | |
Change it to: | |
use AuthenticatesUsers { | |
logout as performLogout; | |
} |
This file contains 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
sudo usermod -a -G www-data jay | |
sudo find . -exec chown jay:www-data {} + | |
sudo find . -type f -exec chmod 664 {} + | |
sudo find . -type d -exec chmod 775 {} + |
This file contains 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
/* | |
SELECT date(activated_at) as activated_at, | |
leader_member_id, | |
count(if(leg_side = 'left',1,null)) as left_count, | |
count(if(leg_side = 'right',1,null)) as right_count | |
FROM `binary_active_team_members` | |
WHERE earning_id is NULL | |
GROUP BY date(activated_at), |
This file contains 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
public function getTree($root, $level = 3) | |
{ | |
$nodes = DB::select( | |
' | |
SELECT | |
members.id, | |
members.first_name, | |
members.leg_side, | |
members.parent_id | |
This file contains 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 | |
namespace App\Repositories\Backend; | |
use App\Models\Member; | |
use Illuminate\Support\Facades\DB; | |
use App\Exceptions\GeneralException; | |
use App\Repositories\BaseRepository; | |
use Illuminate\Pagination\LengthAwarePaginator; |
This file contains 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
/** @test */ | |
public function an_admin_can_resend_users_confirmation_email() | |
{ | |
$this->loginAsAdmin(); | |
$user = factory(User::class)->states('unconfirmed')->create(); | |
Notification::fake(); | |
$this->get("/admin/auth/user/{$user->id}/account/confirm/resend"); | |
Notification::assertSentTo($user, UserNeedsConfirmation::class); |
This file contains 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
sudo mkdir -p ~/Documents/projects/NEW-SITE-NAME.loc/public_html | |
sudo touch /etc/apache2/sites-available/NEW-SITE-NAME.loc.conf | |
sudo gedit /etc/apache2/sites-available/NEW-SITE-NAME.loc.conf | |
put the following content in file and save. | |
-------------------------------------------- | |
<VirtualHost *:80> | |
ServerAdmin admin@NEW-SITE-NAME.loc |
This file contains 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
// Test results | |
$array1 = test('array_walk'); | |
$array2 = test('array_walk_list_each'); | |
$array3 = test('array_walk_foreach1'); | |
$array4 = test('array_walk_foreach2'); | |
// Check arrays for equal | |
var_dump($array1 == $array2, $array1 == $array3, $array1 == $array4); |
This file contains 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
https://github.com/cssanimation/gulp-postcss-starter | |
https://github.com/drewminns/postCSS-starter | |
https://github.com/HamedPour/PostCSS-Developer-Kit | |
https://github.com/martdn/postcss-starter-kit | |
https://github.com/kmh3785/PostCSS-Starter-Kit | |
https://github.com/brewboxit/brewbox-postcss-starterkit/tree/gulp-starter |
This file contains 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
<VirtualHost kakaria.loc:80> | |
DocumentRoot "D:\xampp\htdocs\kakaria" | |
ServerAdmin kakaria.loc | |
<Directory "D:\xampp\htdocs\kakaria"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
NewerOlder