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://cleanbook.org/ | |
https://www.dailyjagaran.com/ | |
https://alokitobangla.news/ | |
https://www.alokitonews24.com/ | |
https://www.sonalinews.com/ |
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
root@cleanbook:/var/www/html# adduser bongo_usr | |
usermod -aG sudo bongo_usr | |
ufw app list | |
ufw allow OpenSSH | |
ufw enable |
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
State -> store, space | |
Getters -> data getting | |
mutations -> change state data | |
Actions -> Order mutations to change specific data | |
Module -> chapter | |
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
$table->boolean('approved')->default('0')->nullable() ======= // in user table | |
// approval middleware | |
public function handle($request, Closure $next){ | |
if(auth()->check()) | |
{ | |
if(!auth()->user()->approved){ | |
auth()->logout(); | |
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
if(request()->hasFile('avatar')){ | |
$avatar = request()->file('avatar')->getClientOriginalName(); | |
request()->file('Avatar')->storeAs('avatars', $user->id.'/'.$avatar, ''); | |
$avatar->update(['avatar]=>$avatar); | |
} | |
return $user; |
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----------------- | |
<div class="content-details"> | |
<?php echo $details;?> | |
</div> | |
<div id="images"> | |
<?php if(!empty($quatation)){ ?> | |
<?php | |
$quatation=unserialize($details); |
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
Laravel file download | |
npm install | |
admin-lte (npm install admin-lte@v3.0.4 --save) | |
npm run dev | |
database setup |
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
Adding Laravel Homestead as a Dependency for The Laravel Project | |
Preparing and Configuring Laravel Homestead | |
Adding the Virtual Domain on The System | |
Using Vagrant to Manage the Laravel Homestead Virtual Machine | |
Keep The Laravel Project Updated |
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
zen coding | |
sublimecodeintel -> defination of Location | |
SideBarEnhancement | |
SublimeLinter-php -> For PHP error finder | |
PHPCompanion -> find on github =[ | |
Sublime->preferences->key bindings->replace github codes |
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 artisan ti | |
factory(App\User::class, 200)->create() | |
*************************************************************** | |
$q = App\Question::first(); | |
$q->answers()->save(factory(App\Answer::class)->make()); | |
$a = App\Answer::find(1); | |
$a->votes_count = 7 |
NewerOlder