Custom global commands and functions to make your life easier.
php artisan app:admin
where you will be requested to enter all the required info for your new super admin.
php artisan route:list
, but there is no quick way to list all your public-facing pages.
You can use this custom command php artisan app:routes
which will output route name and page URI for each public page. Public pages are all GET routes not protected with auth
middleware.
Idea for this command came from neccessity to prepare SEO data for each public-facing page without going manually through routes and controllers to find them.
php artisan payments:sync-products
when you want to update payment provider’s products and prices with your pricing tables defined in config/payments.php
.
sitemap:generate
to generate sitemap public/sitemap.xml
for your pages.
How to configure your sitemap?
app/helpers.php
to improve your quality of development.
foo_bar
to fooBar
to follow Vue naming convention.
date_format
, time_format
, pretty_date_format
and pretty_time_format
in config/app.php
configuration file.
By default, pretty dates are usually used in user-facing pages, while the default date is used in data tables.
diffForHumans
, which shows x seconds ago for actions made just now.
Str
helper method to create acronyms.
string $string
string $delimiter = ''
int $limit = null