Another full month here at Backpack. Both Jorge and Antonio have been missing this month, but that doesn't mean we don't have anything...
Another full month here at Backpack. Both Jorge and Antonio have been missing this month, but that doesn't mean we don't have anything for you. We do, and they're super-useful! Let's dig into it:
With Jorge on holiday, Karan has been holding down the fort all by himself. Fortunately, it's hasn't been a crazy month in terms of issues, not only has he helped our customers (you!) figure stuff out, but he's sneaked in a PR as well 😉 More on that later.
This month, Pedro has been crushed more 🪲 and made the codebase more solid. Sounds small in terms of numbers, but some of those have been A LOT of work (more on that later):
One of the biggest things our team has finished this month was the CKEditor-ElFinder integration. Pedro has spent A LOT of time making this work, but it's done! You can now start choosing files from the FileManager in your CKEditor fields! Check out the docs for more info.
Spoilers: it's as easy as doing 'elfinderOptions' => []
(yes, you can pass options as well).
This is the PR I mentioned Karan has sneaked in. Like all good PRs, this was born out of necessity, and it provides a very simple solution for a problem that often comes up. You want to add a button that does a quick AJAX call... what do you do? We have a great solution now - use the Quick Button, it can now do AJAX calls as well. It's as easy as doing:
CRUD::button('email')->stack('line')->view('crud::buttons.quick')->meta([
'label' => 'Email',
'icon' => 'la la-envelope',
'wrapper' => [
'href' => function ($entry, $crud) {
return backpack_url("invoice/$entry->id/email");
},
'ajax' => true,
]);
and having a route and method that returns the response:
public function email($id)
{
CRUD::hasAccessOrFail('email');
$user = CRUD::getEntry($id);
if ($user->alreadyPaid()) {
return abort(400, 'The user has already paid.');
}
$user->schedulePaymentEmail();
return response()->json([
'message' => 'The payment reminder has been sent successfully.',
]);
}
We've also been sharing quite a bit, on our blog and our Twitter. Here's what's new since last month:
$loop
variable in Laravel;If you haven't already, subscribe to our blog article digest to get these articles as soon as they're out. We also post PHP, Laravel and Backpack tips on Twitter. We're also accepting guest posts. So if you've got anything Backpack or Laravel-related to show our community, send us an email with your idea, happy to see if it's something we can include.
As mentioned in the article about Backpack's 8-year history, we plan to do a discount campaign next month. If you were planning to buy... stay tuned! It'll be a GREAT time to buy. Discounts are limited though so... you gotta stay tuned.
Thanks for using Backpack. We love doing this for you.
Cheers!
Subscribe to our "Article Digest". We'll send you a list of the new articles, every week, month or quarter - your choice.
What do you think about this?
Wondering what our community has been up to?