I am a senior web developer and technology advisor with 21 years of experience.
I spend most of my time working on Object Cache Pro and Relay.
An ultra-fast Laravel docs search workflow for Alfred 3+.
Home Page: http://www.packal.org/workflow/laravel-docs
License: MIT License
I am a senior web developer and technology advisor with 21 years of experience.
I spend most of my time working on Object Cache Pro and Relay.
Is it supported on Windows or just Mac? I have tried double clicking the file and it asks what program who do I open the .alfredworkflow file with?
I downloaded the file, double-clicked the file clicked all applications and selected alfred and absolutely nothing happened?
You are publishing your Algolia credentials to the git.
Have a good day
First thanks for the great workflow!
It would be a nice addition if I could install this package via NPM like this workflow here https://github.com/nikersify/alfred-polyglot.
This way I could it install with my Dotfiles automatically :-)
Greets
Not sure if this is a regression bug, or you removed the support for Alfred 3 and just forgot to update the readme files, but I was unable to install the version from the current master branch. Alfred 3.8.6 complains that the workflow isn't compatible.
I've next tried installing the previous version with the tag v0.2.4 and it worked just fine with my Alfred 3.
Just tried to install this with the Laravel Herd-installed PHP as the only executable on my system and it wouldn't work until I:
ld
Script Filterelif
to the list:elif [ -f "/Users/nexxai/Library/Application Support/Herd/bin//php" ]; then
"/Users/nexxai/Library/Application Support/Herd/bin//php" laravel.php "{query}"
NOTE: You cannot use a ~
symbol; the full path must be completed spelled out.
After that, the ld
workflow worked perfectly.
Just leaving this here for anyone else who has this issue.
Hi @tillkruss . Times ago I have a Mac with Alfredapp. Now I'm using a PC with Linux and I'm using Ulauncher.
I find a way to have the search work for Pest and Livewire but I cannot "convert" your to work.
I'm using this data:
...
"laravel": {
"name": "Laravel",
"description": "The PHP Framework for Web Artisans",
"icon": "images/docs/laravel.jpg",
"algolia_index": "docs",
"algolia_application_id": "8BB87I11DE",
"algolia_api_key": "8e1d446d61fce359f69cd7c8b86a50de",
"url": "https://laravel.com/docs/7.x/"
},
"livewire": {
"name": "Livewire",
"description": "Livewire is a full-stack framework that makes building dynamic interfaces simple, without leaving the comfort of Laravel.",
"icon": "images/docs/livewire.jpg",
"algolia_index": "livewire-framework",
"algolia_application_id": "BH4D9OD16A",
"algolia_api_key": "cec0554d960fa30b4b0b610f372a8636",
"url": "https://laravel-livewire.com/docs/quickstart/"
},
...
Can you give me some hints?
Hi, I don't know if its only me, but I changed the branch to 8.x
and the results is always empty.
Am I doing it right?
BTW, thanks for this, it's an awesome tool.
Hi! There is no Laravel.Docs.alfredworkflow
for v0.2.3 attached to the GitHub Release. The download link in the README is broken, too.
Is anyone having issues with the the workflow? Just setting up a new M1Max MacBook Pro with Alfred 4 and this workflow exhibits an odd behavior. When you 'wake Alfred' and type "ld" you see what you'd expect in the Alfred query box
But just as soon as you start typing the query, Alfred thinks you're typing in a regular search query? see this screen:
I'm not 100% the best way to describe this issue so any suggestions would be appreciated.
So this is Monterey 12.0.1 on a MacBook Pro with the M1Max chip. Not sure any of that makes a difference. I have several workflows that exhibit similar behavior. I've confirmed that the php executable is correct. This is what the configuration screen looks like:
I am not able to use the workflow to search for version 9 docs, only 8.
When the branch
variable is set to 8.x
and I type ld eloquent
, I get the following:
[13:37:11.424] Laravel Docs[Script Filter] Queuing argument 'eloquent'
[13:37:11.692] Laravel Docs[Script Filter] Script with argv '(null)' finished
[13:37:11.696] Laravel Docs[Script Filter] {"items":[{"arg":"https:\/\/laravel.com\/docs\/8.x\/eloquent-resources#introduction","autocomplete":"Eloquent ORM","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/eloquent-resources#introduction","subtitle":"API Resources \u00bb Introduction","title":"Eloquent ORM","uid":"b3e9d38184ace20cc6f74af7076aebc6f0d27332","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/eloquent-mutators#introduction","autocomplete":"Eloquent ORM","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/eloquent-mutators#introduction","subtitle":"Mutators \/ Casts \u00bb Introduction","title":"Eloquent ORM","uid":"a797ac40d92b7edda00241f5b05d535bff2f6e50","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/eloquent-collections#introduction","autocomplete":"Eloquent ORM","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/eloquent-collections#introduction","subtitle":"Collections \u00bb Introduction","title":"Eloquent ORM","uid":"6e0c70409df829a54917886167a8068a5bf4a51c","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/eloquent-serialization#introduction","autocomplete":"Eloquent ORM","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/eloquent-serialization#introduction","subtitle":"Serialization \u00bb Introduction","title":"Eloquent ORM","uid":"5f607bffe17ceb3bc9fd954b19f73339b05ae2b2","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/eloquent#introduction","autocomplete":"Eloquent ORM","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/eloquent#introduction","subtitle":"Getting Started \u00bb Introduction","title":"Eloquent ORM","uid":"3d99c67844fe08f31df3bfa18fa10f04eac92fca","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/eloquent-relationships#introduction","autocomplete":"Eloquent ORM","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/eloquent-relationships#introduction","subtitle":"Relationships \u00bb Introduction","title":"Eloquent ORM","uid":"2dd57d4f23ecf9dfb11bf989a318a3cf42ad897d","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/upgrade#eloquent","autocomplete":"Prologue","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/upgrade#eloquent","subtitle":"Upgrade Guide \u00bb Upgrading To 8.0 From 7.x","title":"Prologue","uid":"c7859e3fe93aeeb67dde728f7078fe2127bf9374","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/pagination#paginating-eloquent-results","autocomplete":"Database","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/pagination#paginating-eloquent-results","subtitle":"Pagination \u00bb Basic Usage","title":"Database","uid":"3c4c041845026ff6e6da6139e275ba073b69c5e0","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/responses#eloquent-models-and-collections","autocomplete":"The Basics","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/responses#eloquent-models-and-collections","subtitle":"Responses \u00bb Creating Responses","title":"The Basics","uid":"cf80dc3dcb82ec79b8a63cfd1fd8a4e0b2e839b5","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/urls#eloquent-models","autocomplete":"The Basics","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/urls#eloquent-models","subtitle":"URL Generation \u00bb URLs For Named Routes","title":"The Basics","uid":"fa2446a38227d0e5085e059791482a12dff3210f","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/releases#model-factory-classes","autocomplete":"Prologue \u00bb Model Factory Classes","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/releases#model-factory-classes","subtitle":"Eloquent model factories have been entirely re-written as class based factories and improved to have first-class relationship support. For example, the UserFactory included with Laravel is written like so","title":"Prologue \u00bb Model Factory Classes","uid":"d0d1c69a8c29244b2bd027759f1b9f95ee3b7616","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/scout#configuring-model-indexes","autocomplete":"Packages \u00bb Configuring Model Indexes","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/scout#configuring-model-indexes","subtitle":"Each Eloquent model is synced with a given search \"index\", which contains all of the searchable records for that model. In other words, you can think of each index like a MySQL table. By default, each model will be persisted to an index matching the model's typical \"table\" name. Typically, this is the plural form of the model name; however, you are free to customize the model's index by overriding the searchableAs method on the model","title":"Packages \u00bb Configuring Model Indexes","uid":"8caa5d16c8f9bc181c6aa7acf7c655dbe71048b6","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/collections#creating-collections","autocomplete":"Digging Deeper \u00bb Creating Collections","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/collections#creating-collections","subtitle":"The results of Eloquent queries are always returned as Collection instances","title":"Digging Deeper \u00bb Creating Collections","uid":"600a816a73b1cdbb929434885ed9344c378a2f5c","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/routing#implicit-binding","autocomplete":"The Basics \u00bb Implicit Binding","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/routing#implicit-binding","subtitle":"Laravel automatically resolves Eloquent models defined in routes or controller actions whose type-hinted variable names match a route segment name. For example","title":"The Basics \u00bb Implicit Binding","uid":"aecae42de9def94d2caed3f66db70edd39b73291","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/queues#ignoring-missing-models","autocomplete":"Digging Deeper \u00bb Ignoring Missing Models","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/queues#ignoring-missing-models","subtitle":"When injecting an Eloquent model into a job, the model is automatically serialized before being placed on the queue and re-retrieved from the database when the job is processed. However, if the model has been deleted while the job was waiting to be processed by a worker, your job may fail with a ModelNotFoundException ","title":"Digging Deeper \u00bb Ignoring Missing Models","uid":"dc5fe2d792dd3449227273b171a5c3d2191eeb9b","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/broadcasting#model-broadcasting","autocomplete":"Digging Deeper \u00bb Model Broadcasting","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/broadcasting#model-broadcasting","subtitle":"To get started, your Eloquent model should use the Illuminate\\Database\\Eloquent\\BroadcastsEvents trait. In addition, the model should define a broadcastsOn method, which will return an array of channels that the model's events should broadcast on","title":"Digging Deeper \u00bb Model Broadcasting","uid":"6e81dda7fbe04deb469b33a5d0e9567d89f0100a","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/database-testing#concept-overview","autocomplete":"Testing \u00bb Concept Overview","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/database-testing#concept-overview","subtitle":"First, let's talk about Eloquent model factories. When testing, you may need to insert a few records into your database before executing your test. Instead of manually specifying the value of each column when you create this test data, Laravel allows you to define a set of default attributes for each of your Eloquent models using model factories","title":"Testing \u00bb Concept Overview","uid":"0e5caba46543758819a26b84a31e0ed2e6954291","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/controllers#resource-controllers","autocomplete":"The Basics \u00bb Resource Controllers","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/controllers#resource-controllers","subtitle":"If you think of each Eloquent model in your application as a \"resource\", it is typical to perform the same sets of actions against each resource in your application. For example, imagine your application contains a Photo model and a Movie model. It is likely that users can create, read, update, or delete these resources","title":"The Basics \u00bb Resource Controllers","uid":"649fe11f14f7cd208a854841719efe9e0571179b","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/structure#the-models-directory","autocomplete":"Getting Started \u00bb The App Directory","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/structure#the-models-directory","subtitle":"The Models directory contains all of your Eloquent model classes . The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database. Each database table has a corresponding \"Model\" which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table","title":"Getting Started \u00bb The App Directory","uid":"0fc233249e2458840b660f9b994ee7671c955bee","valid":true},{"arg":"https:\/\/laravel.com\/docs\/8.x\/authentication#introduction-database-considerations","autocomplete":"Security \u00bb Database Considerations","quicklookurl":"https:\/\/laravel.com\/docs\/8.x\/authentication#introduction-database-considerations","subtitle":"By default, Laravel includes an App\\Models\\User Eloquent model in your app\/Models directory. This model may be used with the default Eloquent authentication driver. If your application is not using Eloquent, you may use the database authentication provider which uses the Laravel query builder","title":"Security \u00bb Database Considerations","uid":"5e393d5446c4bb89a7dfad8ea032bf67caaf2d84","valid":true}]}
When the branch
variable is set to 9.x
and I type ld eloquent
, I get the following:
[13:37:50.484] Laravel Docs[Script Filter] Queuing argument 'eloquent'
[13:37:50.795] Laravel Docs[Script Filter] Script with argv '(null)' finished
[13:37:50.798] Laravel Docs[Script Filter] {"items":[{"arg":"https:\/\/www.google.com\/search?q=laravel%20eloquent","icon":{"path":"google.png"},"quicklookurl":"https:\/\/www.google.com\/search?q=laravel%20eloquent","subtitle":"No match found. Search Google for: \"eloquent\"","title":"Search Google","valid":true},{"arg":"https:\/\/laravel.com\/docs\/","icon":{"path":"icon.png"},"quicklookurl":"https:\/\/laravel.com\/docs\/","subtitle":"No match found. Open laravel.com\/docs...","title":"Open Docs","valid":true}]}
Debug info:
Code 255: Parse error: parse error in /Users/user/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.AB3035A2-E6EA-450C-A490-9BE82E820AD0/laravel.php on line 11
[2018-07-31 11:36:45][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Local PHP version is 7.2.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.