My experience on my daily works... helping others ease each other

Sunday, November 17, 2019

Setting up Laravel with Homestead on Mac

First - Don't trust your VirtualBox
Second - Focus on your Terminal only

Then follow the instruction here:
https://www.danwalker.com/setting-up-a-laravel-homestead-box/

if the first one fails, you can follow here https://petericebear.github.io/installing-laravel-homestead-osx-20160514/

Finally, you can take a look at the documentation https://laravel.com/docs/6.x/homestead or start reading the step at https://laravel.com/docs/6.x/installation

Just remember - virtualbox is there for nothing if you follow the instruction from Dan Walker :)

Basically (after you install virtualbox, vagrant and git)
1. Install the Homestead
2. Then, go to Homestead folder and run vagrant up (after you configure Homestead.yaml - follow Dan Walker steps)

Homestead % sudo vagrant up
Password:
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Checking if box 'laravel/homestead' version '8.2.1' is up to date...
==> homestead: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> homestead: flag to force provisioning. Provisioners marked to run always will still run.
Homestead % sudo vagrant provision
==> homestead: Running provisioner: file...
    homestead: /Users/mylap/Homestead/aliases => /tmp/bash_aliases
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: mariadb because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: ohmyzsh because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: webdriver because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-jukqa0.sh
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-1m33y24.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Certificate: mytest.local
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Site: mytest.local
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-sbf7fz.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: shell...
    homestead: Running: script: Clear Variables
==> homestead: Running provisioner: shell...
    homestead: Running: script: Restarting Cron
==> homestead: Running provisioner: shell...
    homestead: Running: script: Restarting Nginx
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating MySQL Database: homestead
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Postgres Database: homestead
==> homestead: Running provisioner: shell...
    homestead: Running: script: Update Composer
    homestead: You are already using composer version 1.9.1 (stable channel).
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-iyqu6p.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Update motd
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-dwbd58.sh


3. Then, open the ssh

Homestead % sudo vagrant ssh
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-64-generic x86_64)

Thanks for using 
 _                               _                 _ 
| |                             | |               | |
| |__   ___  _ __ ___   ___  ___| |_ ___  __ _  __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | |  __/\__ \ ||  __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|

* Homestead v9.2.2 released
* Settler v8.2.0 released

0 packages can be updated.
0 updates are security updates.


vagrant@homestead:~$ ls
code
vagrant@homestead:~$ cd code

 4. Finally, install the laravel (I defined as mytest.local)
vagrant@homestead:~$ laravel new mytest.local 


5. configure your /etc/hosts to have ip 192.168.10.10 pointing to your laravel page. In my example, 192.168.10.10 mytest.local is the name

6. Open browser and go to http://mytest.local (or your page name defined in Homestead.yaml and /etc/hosts)

That's all bro




Share:

Thursday, November 14, 2019

Useful resources to learn Flutter

I started to learn Flutter and Dart due to 'given' free time. So, to fill up my free time, besides reading some articles and play games with my kids, I add new things to my knowledge and Flutter it is.
Image result for flutter

As I've left programming quite some times, I had to do lots of searches and found a few best sites to learnt and perform what we do best; i.e. CTRL+C and CTRL+V.

Here are the usefull list and will try to add as I found more.

    Image result for Dart
  1. Flutter Dev
  2. An open list of apps built with Flutter
  3. Flutter Tutorials Handbook
  4. AppDividend
  5. A collection of Flutter examples and demos
  6. FB Flutter Development - Maintained by fellow Malaysian
  7. FB Flutter Dev
  8. Flutter Master
  9. Flutter Community @ Medium and their code sharing
  10. Dart and Flutter Command
  11. Flutter Command Cheat Sheet
  12. List of Widgets for newbies by Annsh Singh


Enjoy programming

Image result for programmers
Share:

Wednesday, November 13, 2019

Flutter problem with MacOS Catalina

Apple has just released it's latest OSX known as Catalina. At the time this is written, there is still bugs or problem faces by developers especially when developing other than swift (or any apply proprietary) programming language. One of these problematic languages is Flutter by Google.

There are no shortcut on this. When you enable/allow one, few more will surface. Just be patient and continue to verify the problem as shared via these two link

1. https://github.com/flutter/flutter/issues/42302
2. https://medium.com/codespace69/flutter-idevice-id-cant-be-opened-because-its-integrity-cannot-be-verified-44ad2b313a0e
Share:

About Me

Somewhere, Selangor, Malaysia
An IT by profession, a beginner in photography

Blog Archive

Blogger templates