Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user_id = 1; // ユーザーID
- $path = public_path().'/'.$user_id.'/photos'; // 作成するディレクトリのパス
- if (! \File::exists($path)) { // ディレクトリの存在確認
- \File::makeDirectory($path, 0755, true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement