×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
name
, gender
, username
, email
Methods (behavior): addFriend
, deleteFriend
, postStatus
, follow
, unfollow
class User {
public $username;
public $friends;
public function addFriend($friend_name) {
$this->friends[] = $friend_name;
}
public function removeFriend($friend_name) {
$this->friends = array_filter($this->friends, fn ($m) => $m != $friend_name);
}
}
$user1 = new User();
$user1->username = 'Adam';
$user1->addFriend('Tom');
$user1->addFriend('David');
$user1->addFriend('George');
$user1->removeFriend('David');
print_r($user1->friends);
echo $user1->username;
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text" id="btnGroupAddon">@</div>
</div>
<input type="text" class="form-control" placeholder="Input group example" aria-label="Input group example" aria-describedby="btnGroupAddon">
</div>
<h1>Example heading <span class="badge badge-primary">New</span></h1>
<h2>Example heading <span class="badge badge-secondary">New</span></h2>
<h3>Example heading <span class="badge badge-warning">New</span></h3>
<h4>Example heading <span class="badge badge-success">New</span></h4>
<h5>Example heading <span class="badge badge-secondary">New</span></h5>
<h6>Example heading <span class="badge badge-secondary">New</span></h6>
md
and lg
device sizes<div class="container">
<div class="row">
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
</div>
<br><br><br>
<div class="row">
<div class="col-md-6 col-lg-3">
One of three columns
</div>
<div class="col-md-6 col-lg-3">
One of three columns
</div>
<div class="col-md-6 col-lg-3">
One of three columns
</div>
<div class="col-md-6 col-lg-3">
One of three columns
</div>
</div>
</div>
.no-gutters
on the .row
removes padding from columnspublic function destroy($id)
{
$post = POST::find($id);
// Check for correct user
if (auth()->user()->id !== $post->user_id) {
return redirect('/posts')->with('error', 'Unauthorized page');
}
$post->delete();
return view('posts')->with('success', 'Post Removed');
}
ckeditor
package for textareasadog
globallygit config --global alias.adog "log --all --decorate --oneline --graph"
Which can lately be run using the follwing commandgit adog
After the command execution, In global config
file will be added the following[alias]
adog = log --all --decorate --oneline --graph
On which day we change which files
Git will even show us which lines of code we added and which lines of code we removed