├── source ├── _assets │ ├── sass │ │ ├── _documentation.scss │ │ ├── main.scss │ │ ├── _navigation.scss │ │ ├── _search.scss │ │ └── _base.scss │ ├── css │ │ └── main.css │ └── js │ │ └── main.js ├── favicon.ico ├── assets │ ├── img │ │ ├── logo.png │ │ ├── docsearch.png │ │ ├── logo.svg │ │ ├── icon-terminal.svg │ │ ├── magnifying-glass.svg │ │ ├── icon-stack.svg │ │ ├── icon-window.svg │ │ └── logo-large.svg │ └── images │ │ └── jigsaw.png ├── _nav │ ├── menu.blade.php │ ├── menu-item.blade.php │ ├── menu-toggle.blade.php │ └── search-input.blade.php ├── 404.blade.php ├── _layouts │ ├── documentation.blade.php │ └── master.blade.php ├── docs │ ├── navigation.md │ ├── custom-404-page.md │ ├── customizing-your-site.md │ ├── algolia-docsearch.md │ └── getting-started.md ├── index.blade.php └── _partials │ ├── status.blade.php │ └── live-blog.blade.php ├── .gitignore ├── bin └── setup.sh ├── readme.md ├── commit-and-deploy.sh ├── config.production.php ├── config.staging.php ├── composer.json ├── blade.php ├── navigation.php ├── package.json ├── bootstrap.php ├── webpack.mix.js ├── config.php ├── LICENSE.txt ├── listeners └── GenerateSitemap.php ├── tailwind.config.js └── composer.lock /source/_assets/sass/_documentation.scss: -------------------------------------------------------------------------------- 1 | // Add your custom styles here 2 | -------------------------------------------------------------------------------- /source/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tighten/laravelm1/HEAD/source/favicon.ico -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /build_*/ 2 | /node_modules/ 3 | /vendor/ 4 | .DS_Store 5 | /source/assets/build/ 6 | -------------------------------------------------------------------------------- /source/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tighten/laravelm1/HEAD/source/assets/img/logo.png -------------------------------------------------------------------------------- /bin/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | composer install 4 | npm install 5 | npm run dev 6 | ./vendor/bin/jigsaw build 7 | -------------------------------------------------------------------------------- /source/assets/images/jigsaw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tighten/laravelm1/HEAD/source/assets/images/jigsaw.png -------------------------------------------------------------------------------- /source/assets/img/docsearch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tighten/laravelm1/HEAD/source/assets/img/docsearch.png -------------------------------------------------------------------------------- /source/_assets/css/main.css: -------------------------------------------------------------------------------- 1 | @import 'tailwindcss/base'; 2 | @import 'tailwindcss/components'; 3 | @import 'tailwindcss/utilities'; 4 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Laravelm1 2 | 3 | Taken offline. 4 | 5 | [Laravel M1.pdf](https://github.com/tighten/laravelm1/files/14590835/Laravel.M1.pdf) 6 | -------------------------------------------------------------------------------- /commit-and-deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while true 4 | do 5 | git add . 6 | git commit -am "Wip" 7 | git push 8 | echo '----------' 9 | sleep 10 10 | done 11 | -------------------------------------------------------------------------------- /source/_nav/menu.blade.php: -------------------------------------------------------------------------------- 1 | @php $level = $level ?? 0 @endphp 2 | 3 |
12 | Need to update this page? See the Jigsaw documentation. 13 |
14 |Need to update this page? See the documentation here.
24 |Last update: {{ date('M j, Y') }}
9 | 10 |Documenting the experience of working on an m1 Apple computer as a Laravel programmer.
11 | 12 || @status('unsure') | 27 |Haven't tested yet | 28 |
| @status('no') | 31 |Doesn't work as of testing | 32 |
| @status('rosetta') | 35 |Works, through Rosetta 2 | 36 |
| @status('yes') | 39 |Works natively | 40 |
25 |
26 | To help Algolia index your pages correctly, it's good practice to add a unique `id` or `name` attribute to each heading tag (`git and got this error: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun... let's get to googling. Google says the gool 'ol xcode-select --install, which I could've swore I already did? But let's do it again.brew update but I have to remember to prefix it: arch -x86_64 brew which is a PITA so I'm gonna build a passthrough command arm that shortcuts that same thing..zshrc and see how it treats me for creating basically an ARM repl...
52 | arm () {
53 | while read -ra c; do
54 | arch -x86_64 "${c[@]}"
55 | done
56 | }
57 | .. womp that didn't work oh wellexport ARCHFLAGS="-arch x86_64".. think i'm gonna uncomment that.arch: posix_spawnp: brew: bad CPU type in executable. WTF?! /usr/sbin/softwareupdate --install-rosetta --agree-to-license again I guess?arch -x86_64 brew install phpWarning: You are using macOS 11.0.
65 | We do not provide support for this released but not yet supported version.
66 | You will encounter build failures with some formulae.
67 | Please create pull requests instead of asking for help on Homebrew's GitHub,
68 | Twitter or any other official channels. You are responsible for resolving
69 | any issues you experience while you are running this
70 | released but not yet supported version.
71 |
72 | brew services start php worked!composer global require laravel/valetvalet install let's go... asks for my password, gonna CTRL-C out and see if valet trust works on M1/Big Sur... uhhhh.. trust is not defined? Didn't I write the freaking command? It's in the docs... well.. this is not a good sign for Valet. Gonna try Valet install without running valet trust.cd Sites && valet park.. boom. Let's make a site with Lambo and try it out!cd Sites && lambo yourBestSiteNow.... let's goooo... and we're serving from yourbestsitenow.test!arch -x86_64 brew install redis && brew services start redissetsockopt(SO_RCVTIMEO) Invalid argument. That may be a Redis thing, or a TablePlus thing, or me just putting the details in wrong. Let me check my main computer's TablePlus. Nope, same settings. OK, let's test Redis somewhere else so we can figure out if the problem is Redis or TablePlus.redis-cli ping NOPE. OK. Homebrew *did* say it successfully started Redis. Let's see if running the start command under the different architecture matters. arch -x86_64 brew services start redis... says it's already started. stopped and restarted it... Still this: Could not connect to Redis at 127.0.0.1:6379: Connection refused
88 | make test .. as the output flies by I see that same error several times...INSTALL install five times.... did that.. do anything? I feel like a Linux user right now.redis-cli ping... UGH. Same problem as with Homebrew. So there's something not working. Maybe debug-able? But not for me tonight.arch -x86_64 brew install mysql && brew services start mysqlmysql, I can access it from TablePlus, and my Laravel app is integrating with it..zshrc that lets me write just arm brew install whatever, so future writing here will just show arm.arm brew install postgresql && brew services start postgresql... that worked!psql postgres and in that REPL I wrote CREATE DATABASE matthewstauffer; and then hit enter. Once that was done, I could connect to this Postgres database using the default settings from TablePlus. Good to go!arm brew install memcached && brew services start memcached... ran great. Now I have to remember how to test memcached. Honestly, using it for a Laravel app's cache is probably easiest.arm brew install libmemcached and then pecl install memcached.. hit enter on all the defaults... yet another one of these pkg-config errors. This one says: "pkg-config not found / configure: error: Please reinstall the pkg-config distribution / ERROR: (failure notice)"pkg-config, cause I know nothing about it.arm brew install pkg-configpecl install memcached again.arm brew install zlib.. another meeting...sasl_done but looks like that's just a warning for now. HEY! Installed correctly to /usr/local/Cellar/php/7.4.12/pecl/20190902/memcached.so, and they already enabled it in php.ini for me.. let's test it! OK, class memcached not found. I'm gonna have to test things, also maybe restart php... nope that didn't do it. Will need to take some time, this may very well be pebkac, not m1, I remember Memcached and pecl are a pain some times. Gotta run get the kids though.extension="memcached.so" is up at the top... php -i indicates memcached support is enabled and libmemcached is connected.. and in Tinker, if I run $m = new Memcached, while it throws an error because no servers are defined, the class exists. So is this a Valet issue? Maybe that old Sock problem where Valet is hitting the wrong PHP? Yep! brew services stop php but Valet is still running. What gives, Valet? Running valet install again, because that does a more full reboot.. HEY! There we go! Memcached working!sudo arch -x86_64 redis-server didn't work. I'll try reinstalling it. arm brew reinstall redis -s (-s builds from source)arm brew link --overwrite redissudo arch -x86_64 redis-server take tworedis-server when you need it, you can make it work! I'll call this partial support, although I don't have an icon for that.