Results: 1022
Properties (attributes):
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;
Input group example
<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>
The first row is not responsive and there will be 4 columns for any breakpoints but the second row is responsive based on
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 columns
Only the post author will be able to delete their own post
public 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');
}
Installing
ckeditor
package for textareas
git alias
Creates alias
adog
globally
git config --global alias.adog "log --all --decorate --oneline --graph"
Which can lately be run using the follwing command
git adog
After the command execution, In global
config
file will be added the following
[alias]
	adog = log --all --decorate --oneline --graph
If we made changes in a file, that already was in staging area, the latest changes will not be considered if we commit the file, without adding the file in staging again
Git can tell us:
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
Results: 1022