bashy

DevOps/Lead Developer at a UK Company

Hire Me

Experience

1,108,860

547 Best Reply Awards

  • Member Since 4 Years Ago
  • 548 Lessons Completed
  • 1 Favorite

22nd February, 2018

bashy left a reply on Break, Continue, Return In Blade Template • 1 hour ago

@Finesse You'd probably want to use the loop variable https://laravel.com/docs/5.6/blade#the-loop-variable

21st February, 2018

bashy left a reply on Laravel - 301 Moved Permanently (from Disk Cache) • 1 day ago

IIS ?

I don't know what the problem is.

20th February, 2018

bashy left a reply on Laravel - 301 Moved Permanently (from Disk Cache) • 1 day ago

Best to test with cURL or something that doesn't cache the response. You can see the headers returned with curl -I https://domain.ext

bashy left a reply on Laravel - 301 Moved Permanently (from Disk Cache) • 1 day ago

Omg is this whole thread about the slash being added and the view is working on both?

What a waste of time if that's true. Thought you couldn't see the blade view with the forward slash :|||||||

bashy left a reply on Laravel - 301 Moved Permanently (from Disk Cache) • 1 day ago

@Snapey trailing forward slash should work and be the same route though?

bashy left a reply on Issue Related With Pivot Tables • 1 day ago

And again.

bashy left a reply on Laravel - 301 Moved Permanently (from Disk Cache) • 2 days ago

I know there's some issues (or were) about adding a base / URI in a group but you may just have to define it above the group with the actual URI prepended.

19th February, 2018

bashy left a reply on Issue Related With Pivot Tables • 2 days ago

Yeah please don't just mention me for the sake of it.

bashy left a reply on Symlink To Subfolder In Example.com/laravel/ • 3 days ago

Good stuff :)

15th February, 2018

bashy left a reply on Mailable Queue Vs Job Queue • 6 days ago

You can have a Job that queue emails via a Mailable :P

Depends what it's doing and on what side (cli/web).

bashy left a reply on Npm Install Fails On Linux With Laravel 5.6 • 6 days ago

That image shows npm telling you about the error, not the error itself.

bashy left a reply on Remove /public From URL On Subdomain • 6 days ago

Ah, cPanel won't add the public folder to the document root.

This is an issue with cPanel not allowing custom document roots and can only be solved with a symlink on the server. Ask your hosting company to add it or login to SSH (most shared hosting companies have this).

bashy left a reply on Web PHP/Laravel Network Interfaces Manager • 6 days ago

Oh I thought you were asking for help.

bashy left a reply on Certified Google Partner • 6 days ago

Is this really the place to post this? Why not Google forums?

bashy left a reply on Remove /public From URL On Subdomain • 6 days ago

How did you configure the subdomain? You'll need to point the directory/documentroot to the public folder.

bashy left a reply on Alias For Eager Loaded Relationship • 6 days ago

@rahul_c If you're sending it to an API, you need to use some sort of transformer. I personally use Spatie's fractal but you can use https://laravel.com/docs/5.6/eloquent-resources

p.s. you should of said you NEED it to be that name since you're using an external API :P

bashy left a reply on Need Help Problm Run Laravel On Share Hosting • 6 days ago

I don't, sorry.

bashy left a reply on Laravel - 301 Moved Permanently (from Disk Cache) • 6 days ago

Have you tried this?

Route::get('/', '[email protected]');

What does your routes look like? php artisan route:list

bashy left a reply on Need Help Problm Run Laravel On Share Hosting • 6 days ago

  1. Make sure you reference the folders in the namespace for the classes. Should work as I've done it with a few apps that needed multiple auth sides.
  2. I'm not sure what part of Laravel requires (if any) php7.1 but I doubt it's just argon hash. You can try lower the php requirement value in composer.json and see what happens.

bashy left a reply on Alias For Eager Loaded Relationship • 6 days ago

I would try to use single words or 2 at max for relationships. Laravel will read the method name (camelcase) and convert it to snakecase. You wouldn't really want camelcase in JSON responses or views I don't think?

Why not just do samplerelationshipsetup or make another method on the Eloquent model and call it what you want it to be?

// The actual relationship
public function usersWhoAreActive()
{
    return $this->belongsTo(User::class)->where('active', 1);
}

// Just the alias you want to use in views etc
public function users()
{
    return $this->usersWhoAreActive();
}

bashy left a reply on Laravel Rendering View After Each Middleware. Is This Correct? • 6 days ago

The middleware classes are chained but what do you mean the view is rendered after each one? What are you looking at to see this?

bashy left a reply on Need Help Problm Run Laravel On Share Hosting • 1 week ago

Yeah looks like permissions. Just read the error message carefully and you'll figure it out :)

bashy left a reply on How Can We Use Our Own Database Fields For Auth Login In Laravel? • 1 week ago

What is it stopping at? Validation?

13th February, 2018

bashy left a reply on Mailgun Not Sending Email • 1 week ago

Have you checked all those vars are strings? I have a feeling $message might be passed in by Laravel and you may be trying to echo the message object from the mail class.

bashy left a reply on Web PHP/Laravel Network Interfaces Manager • 1 week ago

That's cool. I've only seen/used http://ajenti.org

bashy left a reply on RSA Encryption • 1 week ago

If you're local there's no need to have a valid certificate (as long as you have local IP protection I guess). cURL has the option to pass -k which ignores self-signed certificates.

What do you need RSA keys for? RSA isn't really something for the web but more for SSH key pairs.

bashy left a reply on Mailgun Not Sending Email • 1 week ago

What is in email.blade.php?

12th February, 2018

bashy left a reply on Laravel Forge Can Accept Both Http Https ? • 1 week ago

@javeed_rahman You're redirecting on both server blocks... that's why it's redirecting over and over.

Just serve the site with one server block and add listen 80; to the same block. If it hits on port 80, it will ignore all the SSL stuff.

bashy left a reply on Eliminar En Un CRUD • 1 week ago

English only I would say.

bashy left a reply on OAuth Is Not Working - ERR_TOO_MANY_REDIRECTS - Is Not Possible To Test Oauth Login In Localhost? • 1 week ago

Don't you want to redirect back to auth/facebook/callback instead of auth/facebook since that redirects back to Facebook?

bashy left a reply on How To Loop Through Product-related Pictures? • 1 week ago

I think you've got some missing divs or something but

@foreach($product->pictures as $picture) @endforeach

@foreach($product->pictures as $picture) @endforeach ``` ```

9th February, 2018

bashy left a reply on Reset Password Manually Without Email • 1 week ago

@larel_b Best to open a new thread and mention me or something :)

I think you have already!

8th February, 2018

bashy left a reply on Valet: Ping Works But Browsers Get ERR_CONNECTION_REFUSED • 1 week ago

A ping is not port specific. If there's nothing running on the port (80/443) you will get connection refused or if it's blocked (firewall) you will probably get a timeout.

bashy left a reply on Table Column Mismatch In Laravel Eloquent • 2 weeks ago

That reply is the exact same as mine :(

bashy left a reply on Need Help With Torrent For Homestead Virtualbox File • 2 weeks ago

Can try this but not sure if the trackers I added are working https://thetorrent.org/C3212D9427309B0BB4853E2A3FDF682AA1A2DCB6.torrent

bashy left a reply on Homestead Endless Errors • 2 weeks ago

@dunlop will reply on your thread you created.

7th February, 2018

bashy left a reply on URL Domain Is Not Included In The Applications Domain. • 2 weeks ago

Setting on Facebook side?

bashy left a reply on Table Column Mismatch In Laravel Eloquent • 2 weeks ago

You can override them by passing extra params to the relation you've defined or create the expected columns and keep to the convention of Laravel.

bashy left a reply on How To Show Hidden Field If Carry The Same Id For Radio Button Read From Database Using Laravel • 2 weeks ago

Use JavaScript to listen on the select event on the input then show field?

bashy left a reply on Weird Cache Problem • 2 weeks ago

Looks like it's the session data clearing each time. Have you checked the values of CSRF token and the session value on each load?

bashy left a reply on Table Column Mismatch In Laravel Eloquent • 2 weeks ago

I'm guessing you used Laravel's default values for your relationship or something?

If you're linking applicants to skills then Laravel would expect (by default) to see certain columns to relate them.

bashy left a reply on With() And Leftjoin() In Laravel • 2 weeks ago

paginate() has been chained. Depends what you want to do and if it's the same table or not.

bashy left a reply on With() And Leftjoin() In Laravel • 2 weeks ago

Just chain it?

6th February, 2018

bashy left a reply on Weird Api Behaviour Or Am I Stupid? Halp! • 2 weeks ago

Second what martinbean has put :')

2nd February, 2018

bashy left a reply on Move Outside Php • 2 weeks ago

I think https://adonisjs.com/ is interesting and it's built with the same items as Laravel.

31st January, 2018

bashy left a reply on Redis Stuck (Horizon Shows Task With Pause) • 3 weeks ago

Strange one! I've had loads of issues with Horizon so far...

bashy left a reply on PHPstorm Not VueJS Friendly? • 3 weeks ago

@Yassine420 @skliche It is Operator Mono indeed! Love it.

bashy left a reply on Redis Stuck (Horizon Shows Task With Pause) • 3 weeks ago

Can you process the queue manually with php artisan queue:work?

bashy left a reply on Old Release Always Being Used • 3 weeks ago

@curiosity You can add a file on the server in the current release dir then load that file (something like phpinfo() would be good) then deploy then see if you can still load that file.

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.