bashy

DevOps/Lead Developer at :)

Hire Me

Experience

997,010

473 Best Reply Awards

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

21st June, 2018

bashy left a reply on PhpMyAdmin On Forge • 3 days ago

I can't give any updates since I've not used it since. What problems you having?

19th June, 2018

bashy left a reply on How To Pass URL String As Parameter To Laravel Routing • 5 days ago

It's because you're putting a URL into a URL... you need to urlencode() it. No way around it.

bashy left a reply on Best Guides To Deploying Laravel In Sharedhosting • 5 days ago

5.6 requires >= 7.1.3 so 7.0 won't work and it's probably something like two question marks that's causing the error (because it's built for newer PHP versions).

bashy left a reply on How To Pass URL String As Parameter To Laravel Routing • 5 days ago

Well you didn't really explain much about where it was coming from.

If the user adds in the full URL to the video, you need to parse that input and take the ID after v=.

$video_id = str_after($request->input('v'), 'watch?v=');

Although having the user submit it via query string will cause it to parse it wrong (double ?v=)

bashy left a reply on How To Pass URL String As Parameter To Laravel Routing • 5 days ago

<a href="{{ url('watch', ['v' => 'youtubeId']) }}">Watch Video</a>

bashy left a reply on Is There An Easy Way To Load And Save Configs ? • 5 days ago

@hshahdoost Sure, but as soon as someone requests a page and they're not in the cache, they will be added again. You can run jobs to rebuild this on clearance I guess?

4th June, 2018

bashy left a reply on Is It Possible To Feed The Envoy.blade.php File With Data From DB ? • 2 weeks ago

@itsmill3rtime Have you ever thought that maybe that wasn't possible 3 years ago?

bashy left a reply on Hosting On Shared Server Best Practice • 2 weeks ago

@doni49 Linux is very secure by default. Obviously the more packages you install, the more security risk there is but all you have to do is install/change a few things to make it secure then it's just a matter of sudo apt upgrade for updates.

31st May, 2018

bashy left a reply on Best Practice For Mass (group) Emailing • 3 weeks ago

@merwinpoulose Lovely bump there ;)

18th May, 2018

bashy left a reply on Laravel 5 Validation Request, How To Handle Validation On Update? • 1 month ago

@sghimire Then put the rule of sometimes? You didn't say you wanted it to be an optional field?

16th May, 2018

bashy left a reply on Href For A Route In JavaScript • 1 month ago

How do you put the 'route'? What route?

bashy left a reply on Laravel 5 Validation Request, How To Handle Validation On Update? • 1 month ago

@sghimire You will need to do two rules for it;

protected $rules = [
    'title' => 'required|string|max:255',
    'slug' => 'required|alpha_dash|min:5|max:255|unique:posts,slug',
    'image' => 'sometimes|image',
    'category_id' => 'required|integer',
    'reports' => 'required',
    'reports.*.report_type_id' => 'required|integer'
];

15th May, 2018

bashy left a reply on Thanks And Farewell • 1 month ago

@endian Yeah something like that. It's currently built in Python and working so when I get some free time, I'll be looking into it more :)

bashy left a reply on Thanks And Farewell • 1 month ago

Yeah nodejs is fun. I've been looking at something micro for an API that I don't want to setup a web server + php on each server.

11th May, 2018

bashy left a reply on SSL Issue With Laravel On Production Server Using Apache • 1 month ago

Do you use a proxy? Laravel will write the URLs with the same protocol it reads from the server headers. If it's returning HTTP, it means it sees HTTP (usually a reverse proxy).

You will need to force the protocol to HTTPS as lostdreamer_nl stated.

bashy left a reply on Shared Hosting • 1 month ago

Did you upload the vendor folder from local? Composer caches the file paths.

10th May, 2018

bashy left a reply on Laravel 5.6 Using Laracharts. Chart Wont Render • 1 month ago

@andremac96 Maybe try the non-blade code to see if that works first?

bashy left a reply on Laravel 5.6 Using Laracharts. Chart Wont Render • 1 month ago

I see you've imported Lavacharts but using the Lava facade.

Did you add

'Lava' => Khill\Lavacharts\Laravel\LavachartsFacade::class,

into your aliases array in config/app.php?

8th May, 2018

bashy left a reply on Session Logs Out Frequently And Automatically Even When Session Is Not Idle • 1 month ago

Right, now we're getting the information we need :P

Sounds like the sessions aren't in sync and it's refreshing them all. I'm not to familiar with this setup and how Laravel would handle this so I'm not sure I can help.

bashy left a reply on Session Logs Out Frequently And Automatically Even When Session Is Not Idle • 1 month ago

Ok, thanks for the information. Do you use separate names for the redis data since you're using it for different apps? If that's what you meant by server instances.

There's quite a lot on this topic if it's at peak times. Think redis should be ok for high traffic though.

bashy left a reply on Session Logs Out Frequently And Automatically Even When Session Is Not Idle • 1 month ago

Have you got a test case for this?

Since you've tried different drivers for the session, it seems like it's application level. Are the cookie names changing? Is this without closing the browser?

bashy left a reply on Current Url Without Paging Or Page =1 • 1 month ago

{{ request()->except('page') }}

bashy left a reply on Getting The URL After Domain In Laravel • 1 month ago

Deffo segment(1)

Use the helper method though

/provinsi:gorontalo/market:pc will be provinsi:gorontalo

{{ request()->segment(1) }}

7th May, 2018

bashy left a reply on Laravel Is A Giant Waste Of Time • 1 month ago

This still going?! Some things need a 'lock' on :P

bashy left a reply on Login And Register On Same Page • 1 month ago

Have you made your own Form Request then? Have you tried {{ $errors->login->first('email') }}?

bashy left a reply on What Is The Difference Between Cache::add And Cache::put • 1 month ago

Yeah that's it.

Docs;

The add method will only add the item to the cache if it does not already exist in the cache store

bashy left a reply on CANT CONNECT TO DATABASE • 1 month ago

@Snapey Yeah true, I always forget people cache config in dev environments for some reason :P

bashy left a reply on Force View On Specific User When A HTTP GET Is Fired In The Background • 1 month ago

Cool, good to hear! I also use Pusher and Echo - fun to learn.

5th May, 2018

bashy left a reply on Why Are Not Appearing The Next Registrations In Congresses? • 1 month ago

Trouble is, you need to go into the relation first then do the where. If this is what you're looping on.

0 => Registration {#287 ▶}
1 => Registration {#288 ▶}
2 => Registration {#289 ▶}

bashy left a reply on Why Are Not Appearing The Next Registrations In Congresses? • 1 month ago

Then you can remove the closure on the with() and do that as you were in the view.

bashy left a reply on How To Change PHPStorm Font Weight ? • 1 month ago

This could work; Appearance & Behaviour -> Appearance -> Antialiasing from Subpixel to Greyscale

bashy left a reply on Why Are Not Appearing The Next Registrations In Congresses? • 1 month ago

Are you trying to iterate over congress relation or registrations? Your foreach is doing the registrations and also congress_end_date instead of end_congress_date?

The congresses table has a column "end_congress_date", if the "end_congress_date"

Also, if the dd() returns a collection of Registration items, you need to go into those first. It's pulling in all registrations and you can't loop with a where like that. Need a new query with a nested where() in the with().

$regs = Registration::with(['congress' => function($query) {
    $query->where('congress_end_date', '<=', now()); // whatever the date is on congresses table
}])->whereHas('user', function () {
    $query->where('id', auth()->id());
})->get();

return $regs;

3rd May, 2018

bashy left a reply on Other Payment Methods In Cashier (SEPA / IDeal) • 1 month ago

I'm not great with JS, sorry.

bashy left a reply on NGINX Accepts HTTP Requests Not HTTPS • 1 month ago

I think it could be down to you trying to check what's stopping the connection go through. Connection refused is a refusal because nothing is listening on the port (most of the time). Have you got any firewall settings for port 443?

bashy left a reply on NGINX Accepts HTTP Requests Not HTTPS • 1 month ago

So it's running. Now to test firewall or port mapping (since you're proxying). I'm not sure how you do that with docker but this seems interesting: https://forums.docker.com/t/run-docker-engine-with-443-port-already-occupied/9749

bashy left a reply on NGINX Accepts HTTP Requests Not HTTPS • 1 month ago

@Dragotic Doesn't mean nginx can listen on that port properly.

You need to check netstat to check it's there first

sudo netstat -tulpn | grep 443
// or
sudo netstat -tulpn | grep LISTEN

Then we can go from there if it's listed.

bashy left a reply on NGINX Accepts HTTP Requests Not HTTPS • 1 month ago

Connection refused means there's nothing listening on the HTTPS port (443).

2nd May, 2018

bashy left a reply on When Validating Email Content, Like A Message, What Type Of Validation Should I Be Using? • 1 month ago

Oh wow, sorry :D

Yeah as I said before, it's more of how you display the data. Are you just sending off what they put as an email or something? To whom does it go to?

bashy left a reply on When Validating Email Content, Like A Message, What Type Of Validation Should I Be Using? • 1 month ago

@rotaercz I don't think you can validate "email content" but instead just parse the data properly.

If that's what you meant by email content

bashy left a reply on XP System Broken • 1 month ago

@Cronix Did you answer one of his topics correctly then? I believe it was only from marking it correct multiple times.

bashy left a reply on XP System Broken • 1 month ago

This was from https://twitter.com/jeffrey_way/status/991741954227625984

Not sure why they'd go down unless the thread was removed? Not sure.

bashy left a reply on Foreign Key Restraints Lost! How To Re-apply? • 1 month ago

Strange. Maybe it wasn't set right for the table.

bashy left a reply on Need To Add Data In Two Tables • 1 month ago

@rin4ik You have been here 11 months? We haven't been here 4 years helping people on these forums. We received t-shirts when we were the first people to reach 500k and that was 3 years ago now. You've been faking his best answers and now he has no way of knowing how many he's actually got. I haven't used fake best replies and I'm not sure what XSS thread has to do with this?

bashy left a reply on Having Issues Starting Nginx On Server Reboot • 1 month ago

@someT systemctl is-enabled nginx.service. There's probably some info on the status command for systemctl as well but is-enabled will say if it is or not.

bashy left a reply on CANT CONNECT TO DATABASE • 1 month ago

Why does the error say to database 'c rud' but you use crud in your .env. Is a space being added somehow?

bashy left a reply on Need To Add Data In Two Tables • 1 month ago

@rin4ik I've been watching videos just now? Although I've been talking to Bobby about our replies being liked a lot.

bashy left a reply on Laravel 5.5 Deployment To Production • 1 month ago

Is this a 'hosting server' with SSH access? I've been using Envoy tasks to deploy things recently for ease of use. vendor folder is created with composer install so either you can commit that too to git or leave it out (default) and run install on the server.

Example: https://docs.gitlab.com/ce/ci/examples/laravel_with_gitlab_and_envoy/#full-script

Using https://laravel.com/docs/5.6/envoy

bashy left a reply on Having Issues Starting Nginx On Server Reboot • 1 month ago

systemctl enable will symlink the service so it starts on boot. That's why service start nginx won't.

1st May, 2018

bashy left a reply on Having Issues Starting Nginx On Server Reboot • 1 month ago

Looks like however or whatever started the nginx process, wasn't root.

sudo systemctl enable nginx.service
// try a reboot
sudo reboot

// check status of nginx
sudo systemctl status nginx.service
// can start it with this to see if it's running properly
sudo systemctl start nginx.service
Edit Your Profile
Update

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