bashy

DevOps/Lead Developer at a UK Company

Hire Me

Experience

1,090,090

537 Best Reply Awards

  • Member Since 3 Years Ago
  • 539 Lessons Completed
  • 1 Favorite

24th November, 2017

bashy left a reply on Route Group For Admin • 15 hours ago

Prefix of admin and a route /admin will result in /admin/admin

17th November, 2017

bashy left a reply on PhpMyAdmin On Forge • 1 week ago

@maurolopes Once you have the files from git (clone part), you just need to point a domain (sub-domain or IP as well) via your web server to the cloned files.

15th November, 2017

bashy left a reply on SweetAlert Vs SweetAlert 2 • 1 week ago

The original SweetAlert https://github.com/t4t5/sweetalert wasn't updated for a while so someone forked it and created the 2 one. The original is now back on track so you can pick either.

I think the original is OK to use.

bashy left a reply on Homestead And Apache • 1 week ago

@thinsoldier If you wanted multiple web server software running, you'd need to use different ports for each one.

8th November, 2017

bashy left a reply on Laravel CMS's - Do You Use Any?? What Do You Reach For? • 2 weeks ago

I built a custom CMS using Laravel for our company to use for client's websites.

7th November, 2017

bashy left a reply on How To Save Multiple Selection(select2) In Laravel • 2 weeks ago

Any info on database structure??? :|

bashy left a reply on Laravel 5 - .htaccess Issue • 2 weeks ago

@GhaithAli Your web server is probably not seeing the connection as HTTPS. Have you got any proxies in front of it?

2nd November, 2017

bashy left a reply on Pi Button • 3 weeks ago

You've taken a photo of your screen to see the button? :D

31st October, 2017

bashy left a reply on Sort In Descending Order • 3 weeks ago

Yes you can do it that way or if you want access to both, you can use this;

public function viewPost(Post $post)
{
    $post->with(['comments' => function ($query) {
        $query->latest('id'); // can use latest('id') or orderBy('id', 'desc')
    }]);

    return view('view_post', compact('post'));
}

30th October, 2017

bashy left a reply on Sort In Descending Order • 3 weeks ago

$data = Model::latest('id')->get();

return view('some.view', compact('data'));

bashy left a reply on Artisan CLI + Command Constructors • 3 weeks ago

Without some code example of what you're doing, I can't really make sense of it.

bashy left a reply on How To Download Or Extract The Zip File From Url • 3 weeks ago

I don't understand that code. It's a local file but you're using cURL to download it again?

What is the error you're getting?

bashy left a reply on How To Download Or Extract The Zip File From Url • 3 weeks ago

Just use the PHP Zip Archive class.

bashy left a reply on Cannot Load Laracasts On IOS 9 • 3 weeks ago

Just tested it on an iPad mini 3

Tried upgrading to iOS 10 or 11? :P

bashy left a reply on Artisan CLI + Command Constructors • 3 weeks ago

Put the code in a try catch block?

24th October, 2017

bashy left a reply on Error In Broadcast Notification With Pusher And Laravel Echo Please Help Me? • 1 month ago

If you get Missing argument 2 for App\Providers\BroadcastServiceProvider then it's trying to auth the current user. If it does it will proceed to the alert.

23rd October, 2017

bashy left a reply on Can't Connect To Homestead DB Through Sequel Pro • 1 month ago

@alexagui What's the error? Long as you have SSH access, it will work regardless of server settings since it's a proxy through to the MySQL server.

bashy left a reply on Error In Broadcast Notification With Pusher And Laravel Echo Please Help Me? • 1 month ago

I use that and it works. Probably not added something that it needs.

bashy left a reply on Error In Broadcast Notification With Pusher And Laravel Echo Please Help Me? • 1 month ago

Not sure if you can use underscores in the var name.

bashy left a reply on Laravel Horizon Package Needs Pcntl Extension On Windows • 1 month ago

:D

Does it work?

bashy left a reply on Multipart Email • 1 month ago

@kossa Thanks for the duplicate link :)

bashy left a reply on Save New Tags In Many To Many Polymorphic Relations In Laravel. • 1 month ago

What is it doing with that code? Looks 'OK' to me apart from the $request->'name' part which should probably be $request->name without the single quotes.

bashy left a reply on Error In Broadcast Notification With Pusher And Laravel Echo Please Help Me? • 1 month ago

You're missing the $userId parameter. You can't use * to match in Laravel routes.

Just like normal GET or POST routes, you'll want to use {userId} or something.

public function boot() {
    Broadcast::routes();

    Broadcast::channel('App.User.{userId}', function ($user, $userId) {
        return (int) $user->id === (int) $userId;
    });
}

bashy left a reply on Need A Feedback And Users For My Webapp • 1 month ago

I have no clue what you're asking.

bashy left a reply on Using Spatie For Roles • 1 month ago

I've used it quite a bit.

Can you show the contents of your tables for roles and model_has_roles?

bashy left a reply on Catch Notification Failures? • 1 month ago

bashy left a reply on Cronjob "between" In Laravel 5.1 • 1 month ago

I would upgrade. I try not to help older versions because it causes old versions to stick around.

bashy left a reply on Not Getting Any Response From Homestead Box • 1 month ago

Can you ping it?

Think the default IP is still .10.10

ping 192.168.10.10

bashy left a reply on Multipart Email • 1 month ago

This is already supported within Laravel Mailables https://laravel.com/docs/5.5/mail#configuring-the-view

18th October, 2017

bashy left a reply on Laravel As A Backend To An APP • 1 month ago

I'm not sure on where you'd learn about app related stuff but JWT is the way to go with that. The app frameworks you mentioned are good to use. Cordova is used (and is what Ionic uses)

17th October, 2017

bashy left a reply on Laravel OrderBY With Specific Value • 1 month ago

You can do raw SQL and do something like this: http://sqlfiddle.com/#!9/d83dfe/1

DB::raw("CASE WHEN country LIKE 'india%' THEN 0 ELSE 1 END, country_name")

bashy left a reply on Laravel As A Backend To An APP • 1 month ago

Few questions.

  1. Does the app require/have login or register functionality?
  2. Do the calls need to be protected or is it public data?
  3. Is it saving data to the backend?

You can use JWT (JSON Web Tokens) to call and login to Laravel like normal. Laravel also has a nice API system with rate limits etc now.

bashy left a reply on How To Install Laravel Again? • 1 month ago

@danieltj source command won't return anything but it will reload the file. I'm guessing that refreshed it.

bashy left a reply on DNS Issues With Nginx And .money TLD • 1 month ago

@jbloomstrom They thought it was nginx. It's good to share experience, but not after 2 weeks time? :)

bashy left a reply on After Adding Socialite Package Laravel 5.5 Login Stops Working • 1 month ago

At what point do you get the "The page has expired" error? And does the CSRF token change on each page refresh?

16th October, 2017

bashy left a reply on How To Install Laravel Again? • 1 month ago

@danieltj Yeah that's not picking it up. Tried doing source ~/.bashrc?

Have a go with this, their composer plugin is great: http://ohmyz.sh/

bashy left a reply on Submitting Form To A Route Causes File Download, Possibly Intervention Bug • 1 month ago

People won't read a wall of text.

bashy left a reply on After Adding Socialite Package Laravel 5.5 Login Stops Working • 1 month ago

Have you got CSRF token in the form/request?

bashy left a reply on How Do I Authenticate Two Models? • 1 month ago

Why did you opt for two tables?

bashy left a reply on How To Install Laravel Again? • 1 month ago

@danieltj Try do this and see if you see the proper path to composer bin folder.

echo $PATH

bashy left a reply on SQLSTATE[42S01]: Base Table Or View Already Exists: 1050 Table 'users' Already Exists • 1 month ago

@eeemizan Talking to me? You can seed your data with --seed added onto that command.

bashy left a reply on DNS Issues With Nginx And .money TLD • 1 month ago

@jbloomstrom What does that bring to the convo a week later? Most DNS hosts issue updated lists but it depends on their TTL amount and any local caching.

bashy left a reply on Storage Symbolic Link - Laravel Forge - Help! • 1 month ago

@Deshola Envoyer should have a section where you can supply a list of folders to link to certain places. I don't use it, I use https://github.com/REBELinBLUE/deployer which does have that functionality.

13th October, 2017

bashy left a reply on Back Arrow Button Linking To Same Page After Replying To Thread • 1 month ago

I think this is now fixed! :)

bashy left a reply on Count Number Of Duplicate Records In My Database • 1 month ago

Probably need some sort of groupBy and selection. What is your query right now so I can give you some pointers?

bashy left a reply on How To Get Answers To The Questions ? • 1 month ago

I spend a lot of time of these forums and let me tell you...there's a lot to go through. I try to check out threads without answers and ones that haven't been marked as answered but there's just so many.

This one for example: https://laracasts.com/discuss/channels/laravel/turbolinks-errors-with-multiple-yieldsincludes I have no idea what any of that means. You haven't put any code or explained what turbolinks are.

There's people willing to help, but not on that level.

bashy left a reply on How To Create A Route With Slug Or Id • 1 month ago

@arthruvillar That won't help if you want to match both ID and slug columns.

bashy started a new conversation Back Arrow Button Linking To Same Page After Replying To Thread • 1 month ago

After replying to a thread, the back arrow links to the current thread instead of an intended full back.

bashy left a reply on Tweaking The Layout • 1 month ago

@JeffreyWay Thanks for letting me know! Was weird to see that, second had same ID without XP :)

Edit Your Profile
Update

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