Laravel/Vue dev, 15+ years, Toronto. Looking for contract or full-time work, remote preferred. I wrote and open sourced my own starter kits for spinning up new projects, also happy to join existing ones.
For one client I'm currently building an auto answer into our "received your message" emails, with a little button to see if that answered their question or not. Small business though, so we don't have to worry about too much token usage, though we do have some guardrails/maxes to prevent things from going off the rails.
Looks nice and polished, I added my Laravel API Starter for review. For the freelancer profile I would like to fill it in and 11.60 / year is a good price, just hesitant with no traffic yet. I'd probably be willing to pay that for extra features though, have you considered some kind of free freelancer listing option while you build up some traffic?
Not sure, but I just went through porting my clients DNS to Cloudflare and setting up Mailgun for them and going through bot/prompt debug to try to verify it all looks good. Was just thinking a lot of that could be automated via a script or something, perhaps with some email send tests. Haven't really dug into it yet though, so not sure how much could really be automated that way.
Nice. I go through this all the time with my clients. Would be interesting to see this as a package that automates the checks, and perhaps outputs a todo list for the rest.
Only thing I can think is that it let's us clean things up a bit with a generic helper function which can remove some of the open/close boilerplate for us.
function iterateOverFile(String $file) {
$file = fopen($file);
if (!$file)
die('file does not exist or cannot be opened');
while (($line = fgets($file)) !== false) {
yield $line;
}
fclose($file);
}
So we can just call...
foreach(iterateOverFile($file) as $row) {
doSomeStuffWithRow($row);
}
Currently I have some scenarios like that, but I just use a callback which I believe in the end would be the same thing.
For example...
function iterateOverMe($range, $cb) {
for ($i = 0; $i < $range; $i++) {
$cb($i);
}
}
iterateOverMe(5, function ($i) {
echo $i;
});
So in file example it would look something like...
iterateOverFile($file, function ($row) {
doSomeStuffWithRow($row);
});
Though looking at it now, I suppose an iterator is "cleaner" solution if we potentially need access to data in the parent scope which would avoid having to use use.
Another scenario could be where you want to keep track of total number of posts per category, so you could display that easily without having to run total counts each time.
Which then also allows sorting by most popular categories and other analysis that may come up.
In general doing it in DB will likely allow you to more easily deal with future scenarios.
I've edited the original post to be more clear. I'm trying to cache the final rendered output, not the blade templates, which yes is standard out of the box...
Hmm, yea, could work, but I guess needs to implemented in each controller method. I suppose could write some helper for that, but was kind of thinking with middleware might be better to capture the route and do it by the path.
Only thing is I can figure out how to detect a redirect in the middleware, since I store old urls for redirects.
Laravel/Vue dev, 15+ years, Toronto. Looking for contract or full-time work, remote preferred. I wrote and open sourced my own starter kits for spinning up new projects, also happy to join existing ones.
websanova.com
github.com/websanova/starter-vue-spa
github.com/websanova/starter-laravel-api
For one client I'm currently building an auto answer into our "received your message" emails, with a little button to see if that answered their question or not. Small business though, so we don't have to worry about too much token usage, though we do have some guardrails/maxes to prevent things from going off the rails.
ok, nice, I'll have to give it a try
Seems interesting, but where do you define the schema descriptions?
Might be interesting to setup for my starter app, I currently just did this with a little pass through shim:
https://github.com/websanova/starter-laravel-api/blob/main/app/Mcp/Tools/ApiTool.php
So then you can just setup classes as needed for what you want to expose, for example:
https://github.com/websanova/starter-laravel-api/blob/main/app/Mcp/Tools/App/Bookmark/ListBookmarksTool.php
Lets you keep the MCP code a bit more isolated.
Switched to Ubuntu a couple years ago and haven't looked back. Docker engine without a VM works great.
Looks nice and polished, I added my Laravel API Starter for review. For the freelancer profile I would like to fill it in and 11.60 / year is a good price, just hesitant with no traffic yet. I'd probably be willing to pay that for extra features though, have you considered some kind of free freelancer listing option while you build up some traffic?
Not sure, but I just went through porting my clients DNS to Cloudflare and setting up Mailgun for them and going through bot/prompt debug to try to verify it all looks good. Was just thinking a lot of that could be automated via a script or something, perhaps with some email send tests. Haven't really dug into it yet though, so not sure how much could really be automated that way.
Nice. I go through this all the time with my clients. Would be interesting to see this as a package that automates the checks, and perhaps outputs a todo list for the rest.
I just set this up for my starter, good to know.
Homestead works great for me.
Yes, also in the article actually (and mentioned by some others) especially if there are multiple data sources, api, csv, db, etc...
I think I have been using callbacks/closures where I should have probably been using Generators instead.
Hmm, interesting...
This, good to know...
hmm, so faster than just doing something like...?
Yes, it's a common example.
Only thing I can think is that it let's us clean things up a bit with a generic helper function which can remove some of the open/close boilerplate for us.
So we can just call...
Currently I have some scenarios like that, but I just use a callback which I believe in the end would be the same thing.
For example...
So in file example it would look something like...
Though looking at it now, I suppose an iterator is "cleaner" solution if we potentially need access to data in the parent scope which would avoid having to use
use.Another scenario could be where you want to keep track of total number of posts per category, so you could display that easily without having to run total counts each time.
Which then also allows sorting by most popular categories and other analysis that may come up.
In general doing it in DB will likely allow you to more easily deal with future scenarios.
I've edited the original post to be more clear. I'm trying to cache the final rendered output, not the blade templates, which yes is standard out of the box...
Not what the question is about.
Hmm, yea, could work, but I guess needs to implemented in each controller method. I suppose could write some helper for that, but was kind of thinking with middleware might be better to capture the route and do it by the path.
Only thing is I can figure out how to detect a redirect in the middleware, since I store old urls for redirects.
Isn't that for blade views? I'm talking about final output of static html.
End of this list.
Back to top