examples/custom_attachment_mask.php
public function custom_save() {
        $path = storage_path('foo');
        $filename = $this->token();

        $path = substr($path, -1) == DIRECTORY_SEPARATOR ? $path : $path.DIRECTORY_SEPARATOR;

        return \Illuminate\Support\Facades\File::put($path.$filename, $this->getContent()) !== false;
    }
public function custom_save() {
        $path = storage_path('foo');
        $filename = $this->token();

        $path = substr($path, -1) == DIRECTORY_SEPARATOR ? $path : $path.DIRECTORY_SEPARATOR;

        return \Illuminate\Support\Facades\File::put($path.$filename, $this->getContent()) !== false;
    }
public function custom_save ( ) { $ path = storage_path ( 'foo' ) ; $ filename = $ this -> token ( ) ; $ path = substr ( $ path , - 1 ) == DIRECTORY_SEPARATOR ? $ path : $ path . DIRECTORY_SEPARATOR ; return \ Illuminate \ Support \ Facades \ File :: put ( $ path . $ filename , $ this -> getContent ( ) ) !== false ; }
Custom attachment saving method
@return bool
Custom attachment saving method