i noticed you are not using the laravel default table naming conventions, you are using user_roles whereass laravel naming conventions state you should use: role_user (alphabetical and singular) you could override the belongsToMany by stating your custom table name ofcource. on the second node there are also some good libraries to handle these kind of […]

Read More →

Looking around web, it seems when using GoDaddy you need to use their relay SMTP with Gmail credentials when you want to send an e-mail. So in your .env file instead of: MAIL_HOST=smtp.gmail.com you should use MAIL_HOST=here_godaddy_relay_server The exact value of relay server depends on hosting you have but it will be probably relay-hosting.secureserver.net so […]

Read More →

You’re moving the file in the wrong direction. It should be $move = File::move($old_path, $new_path); … in other words, the first argument should be the OLD file location, the second argument should be the NEW file location… you have it backwards. 🙂 From the Laravel Docs Move A File To A New Location Storage::move(‘old/file1.jpg’, ‘new/file1.jpg’); […]

Read More →

It’s really up to you. It’ll need to be outside the public directory - I’d personally pick resources/uploads or storage/uploads, or store them off-server entirely using the cloud filesystem support. Whatever you pick, you’ll need a route that fetches the file and passes it along to the user after first checking that they have access.

Read More →