We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da6031 commit 0e4bdbbCopy full SHA for 0e4bdbb
examples/custom_attachment_mask.php
@@ -25,12 +25,10 @@ public function token(){
25
* @return bool
26
*/
27
public function custom_save() {
28
- $path = storage_path('foo');
+ $path = "foo".DIRECTORY_SEPARATOR."bar".DIRECTORY_SEPARATOR;
29
$filename = $this->token();
30
31
- $path = substr($path, -1) == DIRECTORY_SEPARATOR ? $path : $path.DIRECTORY_SEPARATOR;
32
-
33
- return \Illuminate\Support\Facades\File::put($path.$filename, $this->getContent()) !== false;
+ return file_put_contents($path.$filename, $this->getContent()) !== false;
34
}
35
36
0 commit comments