Skip to content

Commit

Permalink
Add gitignore to ignore pail files in storage (#35)
Browse files Browse the repository at this point in the history
* Add Pail Logs to gitignore

* Update File.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
ahinkle and taylorotwell committed May 8, 2024
1 parent 5cf8283 commit 6dc52b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public function create(): void

if (! is_dir($directory)) {
mkdir($directory, 0755, true);

file_put_contents($directory . '/.gitignore', "*\n!.gitignore\n");
}

touch($this->file);
Expand Down

0 comments on commit 6dc52b4

Please sign in to comment.