1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips
Samuel Štancl a955c3968b Week 24/2022
2022-06-19 21:46:45 +02:00
..
add-a-recursive-macro-to-convert-an-array-including-its-children-to-collections.md Add this week's tips 2021-11-12 18:43:31 +01:00
adding-where-scopes-which-use-an-indexed-column-to-a-query-thats-primarily-filtered-by-another-column-is-a-great-way-to-speed-up-db-performance.md Change 2021-01 to 2021-50 (Weekly thread #50) 2022-01-07 18:35:45 +01:00
advanced-notifications.md livewire thread 2021-04-09 18:47:19 +02:00
advanced-trait-design.md livewire thread 2021-04-09 18:47:19 +02:00
array-destructuring-in-php-is-very-powerful-yet-still-underutilized.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
avoid-helper-classes.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
avoid-queries-in-blade-when-possible.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
be-careful-about-setting-timezones-with-carbon.md Week 9 of 2022 2022-03-06 19:20:10 +01:00
be-friends-with-your-ide.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
blades-at-class-directive-can-significantly-clean-up-your-templates.md Week 22/2022 2022-06-04 16:05:13 +02:00
call-methods-from-javascript.md livewire thread 2021-04-09 18:47:19 +02:00
class-constructor-property-promotion-pairs-extremely-well-with-dtos.md Week 22/2022 2022-06-04 16:05:13 +02:00
class-you-can-use-the-at-env-blade-directive-to-render-stuff-only-in-a-given-environment.md Week 22/2022 2022-06-04 16:05:13 +02:00
closure-validation-rules-are-theyre-often-better-than-creating-a-class-just-for-a-single-use.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
compare-models-using-is-instead-of-directly-comparing-attributes.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
comparing-changes-on-saving-using.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
compose-components-using-traits.md livewire thread 2021-04-09 18:47:19 +02:00
consider-creating-helpers-for-model-factories.md Week 20/2022 2022-05-22 13:50:08 +02:00
consider-single-action-controllers.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
consider-using-form-requests.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
consider-using-helpers-instead-of-facades-they-can-clean-things-up.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
consider-using-mb-functions-when-working-with-localized-strings.md Weekly thread #47 2021-11-26 16:21:56 +01:00
context-matters.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
controllers-can-be-used-as-route-groups.md Week 16 of 2022 (#30) 2022-04-25 13:00:16 +02:00
convert-email-addresses-to-full-names-with-the-help-of-strheadline.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
create-a-using-helper-in-pest.md Fix content, add command, update readme 2021-08-27 18:37:33 +02:00
create-action-classes.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-an-attempt-helper-for-calls-that-can-silently-fail.md Weekly thread #47 2021-11-26 16:21:56 +01:00
create-custom-blade-directives-for-business-logic.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-fluent-objects.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-helper-functions-for-creating-models-in-tests-using-factories.md Fix content, add command, update readme 2021-08-27 18:37:33 +02:00
create-helper-functions.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-methods-for-complex-conditionals.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
create-model-methods-for-business-logic.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-query-scopes-for-complex-wheres.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-renderable-exceptions.md Weekly thread #46 2021-11-19 16:10:01 +01:00
create-single-use-blade-includes.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-single-use-traits.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
create-subscribers-to-listen-to-amp-handle-multiple-events-using-separate-methods-inside-a-single-class.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
create-this-tinker-bash-script-to-supercharge-your-dev-workflow.md Fix thread command 2021-10-29 20:45:20 +02:00
create-traits-for-relationships-you-commonly-use-in-your-models-to-make-your-codebase-cleaner-simpler-and-more-consistent.md Weekly thread #43 2021-10-29 21:16:27 +02:00
create-variables-when-they-improve-readability.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
custom-collections-pair-well-with-higher-order-proxies.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
custom-response-effects.md livewire thread 2021-04-09 18:47:19 +02:00
customize-the-page-that-users-are-redirected-to-after-registration-by-changing-a-value-in-the-fortify-config.md Add new tips thread 2021-11-05 17:12:37 +01:00
databases-can-generate-random-uuid-keys.md Week 24/2022 2022-06-19 21:46:45 +02:00
dedicate-a-weekend-towards-learning-proper-oop.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
dont-create-variables-when-you-can-just-pass-the-value-directly.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
dont-just-write-procedural-code-in-classes.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
dont-split-lines-at-random-places-but-dont-make-them-too-long-either.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
dont-use-a-controller-namespace.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
dont-use-abbreviations.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
dont-use-model-methods-to-retrieve-data.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
eloquent-listeners-are-awesome.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
example-checking-a-parent-relationship-for-some-things.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
example-deleting-associated-files-on-deletion.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
extract-methods.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
form-elements-can-have-a-target-attribute-which-works-very-similarly-to-ltagt-tags.md Weekly thread #2 (#24) 2022-01-14 19:18:35 +01:00
from-php-74-you-can-use-the-spread-syntax-to-merge-arrays.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
have-a-single-source-of-truth-for-validation-rules.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
heres-another-example-of-the-model-state-stuff-mentioned-above.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
higher-order-messages-are-a-great-way-to-tidy-up-long-collection-logic.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
if-you-didnt-know-at-laravellivewire-now-triggers-updated-and-updating-hooks-for-nested-properties-which-works-with-both-array-and-model-properties.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
if-you-dont-like-the-double-indentation-of-vue-data-you-can-use-arrow-functions.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
if-you-use-both-pest-and-phpunit-you-can-use-both-syntaxes-in-both-types-of-tests.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
if-you-want-to-identify-teams-workspaces-etc-by-path-you-dont-have-to-pass-the-team-id-to-every-route.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
if-youre-debugging-your-app-and-youd-like-to-examine-more-things-eg-the-stack-trace-executed-queries-app-context.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
if-youre-returning-class-names-as-opposed-to-instances-you-can-use-the-class-name-docblock.md Weekly thread #49 2021-12-10 16:25:33 +01:00
implement-the-tostring-method-in-a-class-to-specify-custom-logic-for-converting-its-instances-to-strings.md Weekly thread #43 2021-10-29 21:16:27 +02:00
import-namespaces-instead-of-using-aliases.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
improve-the-dx-of-your-commands-by-making-arguments-optional-and-prompting-the-user-when-theyre-empty.md Week 15 of 2022 2022-04-17 20:03:34 +02:00
in-laravel-9-you-can-use-str-instead-of-strof.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
in-scheduled-tasks-you-can-use-onsuccess-and-onfailure-callbacks.md Week 15 of 2022 2022-04-17 20:03:34 +02:00
including-a-unique-value-like-now-or-strrandom-in-the-blade-template-of-a-livewire-component-is-a-great-way-to-check-if-that-part-of-the-dom-is-getting-re-rendered.md Weekly thread #46 2021-11-19 16:10:01 +01:00
instead-of-writing-repetitive-else-if-statements-use-an-array-to-look-up-the-wanted-value-based-on-the-key-you-have.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
interesting-technique-add-getters-to-form-requests.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
isset-accepts-multiple-arguments.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
its-about-the-micro.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
keep-validation-rules-inside-models-to-make-your-code-more-consistent-and-clean.md Weekly thread #49 2021-12-10 16:25:33 +01:00
laravel-9-can-automatically-bind-route-parameters-to-enums.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
laravel-can-automatically-notify-you-by-email-when-a-scheduled-job-fails.md Weekly thread #47 2021-11-26 16:21:56 +01:00
laravel-migrations-have-a-very-nice-syntax-for-foreign-keys.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
laravel-nova-lets-you-show-different-resourcestoolscards-based-on-an-if-check.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
laravel-provides-a-fluent-class-as-a-universal-structure-for-array-data.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
laravel-telescope-is-great-for-so-many-things.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
laravels-container-can-be-used-for-resolving-variadic-dependencies.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
laravels-http-client-lets-you-easily-define-retry-attempts-and-a-timeout.md Week 21/2022 2022-05-27 21:23:30 +02:00
laravels-http-client-supports-concurrent-requests-using-the-pool-method.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
laravels-slack-logging-channel-is-fully-compatible-with-discord.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
livewire-readonly-properties.md livewire thread 2021-04-09 18:47:19 +02:00
long-classes-can-be-split-into-small-single-use-traits.md Week 24/2022 2022-06-19 21:46:45 +02:00
make-laravel-send-all-emails-to-a-specific-email-address-using-mailalwaysto.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
make-models-prunable-to-periodically-delete-them-from-the-db.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
match-statements-are-a-great-way-to-clean-up-code.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
method-parameters-can-be-marked-as-sensitive.md Week 24/2022 2022-06-19 21:46:45 +02:00
move-tests-to-separate-test-suites.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
mysql-has-a-blackhole-store-engine.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
name-all-timestamp-fields-using-the-action-at-convention.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
name-contracts-as-descriptors-and-implementations-as-orders.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
number-markdown-lists-with-1-rather-than-the-actual-number.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
orderbyraw-is-very-useful-for-complex-sorting-in-eloquent.md Week 20/2022 2022-05-22 13:50:08 +02:00
partial-indexes-are-useful-for-enforcing-rules-that-only-apply-conditionally.md Week 20/2022 2022-05-22 13:50:08 +02:00
people-underutilize-the-exception-handler.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
pest-allows-calling-dd-directly-on-the-expect-chain.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
php-81-enums-can-be-used-as-model-casts.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
php-traits-can-contain-abstract-methods.md Week 11/2022 2022-03-20 20:41:25 +01:00
put-migration-names-in-quotes-when-running-makemigration.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
ratelimiters-attempt-accepts-a-fourth-parameter-for-the-decay.md Week 10 2022-03-12 23:01:24 +01:00
relevant-for-people-building-packages.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
replace-state-with-a-custom-directive.md livewire thread 2021-04-09 18:47:19 +02:00
share-state-using-sprucewire.md livewire thread 2021-04-09 18:47:19 +02:00
specify-container-bindings-using-the-bindings-array.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
specify-the-columns-you-want-to-select-when-fetching-all-models.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
the-latestofmany-method-lets-you-use-a-hasmany-relation-as-a-hasone-relation-returning-the-latest-record.md Weekly thread #48 2021-12-03 18:31:27 +01:00
the-order-of-columns-in-multi-column-indices-matters.md Week 10 2022-03-12 23:01:24 +01:00
the-shouldcache-method-lets-you-cache-model-accessor-values.md Week 15 of 2022 2022-04-17 20:03:34 +02:00
the-spread-syntax-understands-named-parameters-and-correctly-assigns-array-values-to-them.md Week 15 of 2022 2022-04-17 20:03:34 +02:00
the-value-helper-returns-the-passed-value-unless-its-invokable-then-it-first-calls-it.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
there-are-multiple-ways-to-redirect-users.md Fix thread command 2021-10-29 20:45:20 +02:00
theres-great-value-in-understanding-how-object-state-of-models-works-this-is-mostly-relevant-in-feature-tests-because-they-touch-many-parts-of-your-codebase-in-one-phplaravel-app-state.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
this-one-is-less-obscure.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
this-pattern-is-brilliant-and-can-make-your-code-much-more-clean-and-consistent.md Weekly thread #49 2021-12-10 16:25:33 +01:00
this-wont-fit-into-one-tweet-but-theres-so-much-cool-stuff-you-can-do-with-eloquent.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
try-to-avoid-unnecessary-nesting-by-returning-a-value-early.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
understand-the-difference-between-fresh-and-refresh-one-returns-a-fresh-new-instance-while-the-other-refreshes-an-existing-instance.md 13/2022 2022-04-02 17:18:22 +02:00
uploaded-files-can-be-attached-to-emails-directly-from-the-request.md Week 24/2022 2022-06-19 21:46:45 +02:00
use-aggregate-methods-to-count-related-models.md Weekly thread #47 2021-11-26 16:21:56 +01:00
use-appends-to-include-properties-in-the-array-representation-of-your-model.md Weekly thread #46 2021-11-19 16:10:01 +01:00
use-carbons-settimezone-and-shifttimezone-methods.md Week 9 of 2022 2022-03-06 19:20:10 +01:00
use-collections-when-they-can-clean-up-your-code.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-comments-for-explaining-complex-logic.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
use-common-table-expressions-to-refine-your-data-in-complex-eloquent-queries.md Add this week's tips 2021-11-12 18:43:31 +01:00
use-composer-why-not-to-see-why-a-dependency-cannot-be-installed.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
use-constructor-property-promotion-to-define-class-properties-directly-on-the-constructor.md Weekly thread #43 2021-10-29 21:16:27 +02:00
use-custom-collections.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-custom-config-files.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-data-transfer-objects-dtos.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-declarestrict-types1-to-enable-strict-mode-for-type-checking.md Weekly thread #43 2021-10-29 21:16:27 +02:00
use-docblocks-only-when-they-clarify-things.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-eloquent-scopes-to-clean-up-complex-relation-queries.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
use-events.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-explicit-null-handling-in-your-db-queries-when-filtering-for-rows-with-empty-value-in-a-nullable-column.md Weekly thread #46 2021-11-19 16:10:01 +01:00
use-expressive-names-for-methods.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-fakernumerify-to-create-strings-with-numbers-at-specific-places.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
use-laravels-task-scheduler-to-run-cli-commands-including-shell-scripts-at-regular-intervals.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
use-match-or-switch-statements-to-conditionally-scope-database-queries-based-on-query-strings-in-the-request.md Change 2021-01 to 2021-50 (Weekly thread #50) 2022-01-07 18:35:45 +01:00
use-not-to-reverse-an-assertion-in-pestphp.md Weekly thread #43 2021-10-29 21:16:27 +02:00
use-on-demand-notifications-to-send-messages-to-unregistered-users.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
use-partitions-for-deleting-mass-amounts-of-data.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
use-postgresqls-trigram-indexes-to-make-where-like-queries-faster.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
use-prefetching-to-boost-the-perceived-speed-of-livewire-apps.md Weekly thread #47 2021-11-26 16:21:56 +01:00
use-retry-for-callbacks-that-may-randomly-fail.md Change 2021-01 to 2021-50 (Weekly thread #50) 2022-01-07 18:35:45 +01:00
use-short-operators.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-skip-when-writing-tests-ahead-of-time.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
use-strict-comparison.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
use-tailwinds-color-opacity-modifier-to-change-the-background-color-and-opacity-in-a-single-class.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
use-tap-to-do-something-with-the-object-and-immediately-return-it.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
use-test-files-to-describe-your-thoughts-about-a-specific-feature-in-full-before-starting-implementation.md Fix thread command 2021-10-29 20:45:20 +02:00
use-the-aftermaking-or-aftercreating-hooks-in-factories-to-execute-additional-logic.md Weekly thread #48 2021-12-03 18:31:27 +01:00
use-the-app-gtterminating-hook-to-perform-tasks-after-the-response-has-been-sent-to-the-user.md Weekly thread #48 2021-12-03 18:31:27 +01:00
use-the-loop-variable-in-blade-foreach-loops-to-access-metadata-about-the-loop.md Weekly thread #46 2021-11-19 16:10:01 +01:00
use-the-nullordelete-method-in-your-relationship-column-definitions-to-clear-their-value-when-the-parent-record-gets-deleted.md Weekly thread #46 2021-11-19 16:10:01 +01:00
use-the-policy-helper-to-resolve-a-policy-for-a-model.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
use-the-quietly-methods-to-create-models-without-firing-events-using-your-factories.md Weekly thread #46 2021-11-19 16:10:01 +01:00
use-the-requests-flag-when-creating-models-to-also-create-form-requests.md Add this week's tips 2021-11-12 18:43:31 +01:00
use-the-reset-method-to-reset-properties-to-their-original-state-in-livewire.md Add new tips thread 2021-11-05 17:12:37 +01:00
use-the-shouldbeencrypted-interface-on-a-job-class-to-make-laravel-encrypt-the-jobs-payload.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
use-the-something-at-convention-instead-of-is-something-in-your-table-definitions.md Weekly thread #46 2021-11-19 16:10:01 +01:00
use-the-soundex-function-in-mysql-to-compare-strings-by-how-they-sound-rather-than-how-theyre-typed.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
use-the-stream-method-to-send-a-file-to-the-browser-without-triggering-a-download.md Week 9 of 2022 2022-03-06 19:20:10 +01:00
use-the-strheadline-method-to-convert-strings-to-studly-words.md Add this week's tips 2021-11-12 18:43:31 +01:00
use-the-touches-property-to-update-the-parent-timestamp-when-a-child-is-updated.md Week 10 2022-03-12 23:01:24 +01:00
use-the-updateexistingpivot-method-to-make-changes-to-pivot-columns-on-existing-records.md Week 9 of 2022 2022-03-06 19:20:10 +01:00
use-the-with-ties-clause-to-return-more-than-the-limit-ed-amount-when-there-are-multiple-results-with-the-same-value.md Weekly thread #8 (#28) 2022-02-28 12:25:21 +01:00
use-the-withaggregate-method-to-add-related-values-to-eloquent-queries-using-subselects.md Add this week's tips 2021-11-12 18:43:31 +01:00
use-to-use-alpine-property-binding-inside-blade-templates.md Week 9 of 2022 2022-03-06 19:20:10 +01:00
use-typehints-wherever-possible-to-improve-code-safety-and-ide-support.md Weekly thread #49 2021-12-10 16:25:33 +01:00
use-wherebelongsto-and-relation-is-instead-of-comparing-ids-manually.md Weekly thread #48 2021-12-03 18:31:27 +01:00
use-wire-entangle-instead-of-entangle.md livewire thread 2021-04-09 18:47:19 +02:00
use-wire-replace.md livewire thread 2021-04-09 18:47:19 +02:00
using-small-integers-instead-of-entire-class-strings-for-morph-relations-can-improve-their-performance.md Add new tips thread 2021-11-05 17:12:37 +01:00
wanna-update-a-set-of-eloquent-models-and-have-the-change-updated-in-the-database-and-in-your-in-memory-instances-but-dont-wanna-incur-a-database-query-for-each-model.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
when-a-relationship-is-already-loaded-and-cached-on-the-model-instance-youll-have-to-refresh-it.md Fixed text encoding issue 2021-04-12 18:31:29 +01:00
when-creating-jobs-only-accept-the-needed-data.md Week 21/2022 2022-05-27 21:23:30 +02:00
when-im-converting-data-into-a-different-structure-one-thing-i-like-to-do-is-annotate-how-the-structure-looks-at-each-point-of-the-process.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
write-functional-code-when-it-benefits-you.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
writing-simple-page-can-be-visited-tests-is-a-great-way-to-get-started-with-testing.md Weekly thread #49 2021-12-10 16:25:33 +01:00
yesterday-in-my-at-laracononline-talk-i-explained-how-to-use-the-query-builder-when-method-to-handle-complex-sorting.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-add-a-messages-method-to-form-requests-to-customize-their-validation-error-messages.md Weekly thread #49 2021-12-10 16:25:33 +01:00
you-can-add-a-refresh-flag-to-the-artisan-down-command-to-send-a-refresh-header-to-the-browser.md Change 2021-01 to 2021-50 (Weekly thread #50) 2022-01-07 18:35:45 +01:00
you-can-add-a-tags-method-to-a-job-anything-you-return-from-this-method-will-be-displayed-in-horizon.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-add-a-uri-fragment-when-redirecting-to-a-route.md Week 24/2022 2022-06-19 21:46:45 +02:00
you-can-add-temporaryurl-to-any-storage-driver.md Week 16 of 2022 (#30) 2022-04-25 13:00:16 +02:00
you-can-add-the-context-and-render-methods-to-custom-exceptions.md Weekly thread #2 (#24) 2022-01-14 19:18:35 +01:00
you-can-add-the-prunable-trait-to-soft-delete-models-from-the-database-but-only-remove-them-permanently-after-a-few-days.md Add this week's tips 2021-11-12 18:43:31 +01:00
you-can-add-this-tailwind-plugin-to-generate-child-selector-variants.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-associate-an-input-with-a-form-using-the-form-attribute.md Week 14 2022-04-09 02:35:20 +02:00
you-can-avoid-many-n1-issues-by-using-lateral-joins-in-mysql.md Week 21/2022 2022-05-27 21:23:30 +02:00
you-can-calculate-multiple-aggregates-in-a-single-database-query.md Weekly thread #49 2021-12-10 16:25:33 +01:00
you-can-calculate-the-age-of-carbon-instances.md Week 14 2022-04-09 02:35:20 +02:00
you-can-call-squish-on-stringable-instances-to-remove-all-unnecessary-whitespaces.md Week 14 2022-04-09 02:35:20 +02:00
you-can-call-withtrashed-on-a-route-to-accept-soft-deleted-models.md Week 14 2022-04-09 02:35:20 +02:00
you-can-chain-can-to-route-definitions-to-specify-policy-rules.md Add this week's tips 2021-11-12 18:43:31 +01:00
you-can-check-if-a-string-contains-json-by-decoding-it-encoding-it-again-and-comparing-the-value-with-the-original.md Weekly thread #43 2021-10-29 21:16:27 +02:00
you-can-clear-all-laravel-caches-using-optimizeclear.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
you-can-conditionally-skip-scheduled-jobs.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-convert-an-eloquent-collection-back-to-an-eloquent-query-builder.md Week 10 2022-03-12 23:01:24 +01:00
you-can-convert-eloquent-collections-back-to-a-query-builder-instance.md Weekly thread #47 2021-11-26 16:21:56 +01:00
you-can-create-db-indices-for-transformed-versions-of-columns.md Remove utm tags 2022-04-12 14:20:37 +02:00
you-can-create-dynamic-relationships-this-relationship-is-based-on-a-column-thats-added-using-a-subquery-in-a-scope.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-create-storage-disks-on-the-fly.md Week 14 2022-04-09 02:35:20 +02:00
you-can-create-text-based-tables-in-laravel-even-outside-cli-commands.md Add new tips thread 2021-11-05 17:12:37 +01:00
you-can-customize-default-validation-rules-for-passwords.md Week 24/2022 2022-06-19 21:46:45 +02:00
you-can-debounce-a-function-using-alpinedebounce.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
you-can-define-casts-for-specific-eloquent-queries.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-define-default-model-data-for-belongsto-relationships.md Week 17/2022 2022-04-29 21:07:03 +02:00
you-can-disable-lazy-loading-using-modelpreventlazyloading.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-dynamically-create-and-extend-interfaces-in-php.md Week 17/2022 2022-04-29 21:07:03 +02:00
you-can-explicitly-bind-objects-to-routes-you-dont-have-to-use-route-model-binding-only-custom-objects-work-perfectly-well-too.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-freeze-time-in-tests.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-generate-a-series-of-dates-in-a-given-range-right-at-the-database-level.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
you-can-generate-fake-images-using-faker.md Week 15 of 2022 2022-04-17 20:03:34 +02:00
you-can-get-all-primary-keys-from-an-eloquent-collection-using-the-modelkeys-method.md Week 16 of 2022 (#30) 2022-04-25 13:00:16 +02:00
you-can-implement-the-shouldbeencrypted-interface-on-your-jobs-to-encrypt-their-payload-before-they-get-pushed-to-the-queue.md Weekly thread #47 2021-11-26 16:21:56 +01:00
you-can-import-entire-namespaces-in-php.md Week 24/2022 2022-06-19 21:46:45 +02:00
you-can-make-concurrent-requests-using-the-http-clients-pool-method.md Week 17/2022 2022-04-29 21:07:03 +02:00
you-can-make-php-throw-an-exception-when-decoding-json-if-the-value-isnt-valid-json.md Weekly thread #43 2021-10-29 21:16:27 +02:00
you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors.md Fix thread command 2021-10-29 20:45:20 +02:00
you-can-name-migrations-like-this.md Add weekly thread #3 (#25) 2022-01-21 18:22:44 +01:00
you-can-namespace-your-helper-functions.md Week 24/2022 2022-06-19 21:46:45 +02:00
you-can-now-call-newline-on-stringable-instances.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-pass-a-custom-view-to-the-artisan-down-command.md Week 21/2022 2022-05-27 21:23:30 +02:00
you-can-pass-parameters-to-laravel-middleware-classes.md Weekly thread #48 2021-12-03 18:31:27 +01:00
you-can-pass-variables-to-blade-views-using-the-withfoobar-syntax.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-process-the-output-of-scheduled-tasks-send-an-email-or-write-to-a-file.md Week 15 of 2022 2022-04-17 20:03:34 +02:00
you-can-queue-closures.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-record-all-login-logout-events.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
you-can-refactor-cluttered-if-conditions-using-lookup-tables-match-statements-and-switch-statements.md Change 2021-01 to 2021-50 (Weekly thread #50) 2022-01-07 18:35:45 +01:00
you-can-remove-all-falsy-values-from-a-collection-by-calling-filter-without-any-arguments.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
you-can-replace-laravels-stubs-to-customize-files-generated-using-artisan-commands.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-return-custom-collections-from-eloquent-queries.md Weekly thread #48 2021-12-03 18:31:27 +01:00
you-can-return-false-from-a-ing-eloquent-event-listener-creating-updating-saving-deleting-to-cancel-the-action.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-return-mailables-as-responses-from-controllers-it-will-show-the-rendered-version-in-the-browser.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-set-model-attributes-on-factories-using-the-set-method.md Week 16 of 2022 (#30) 2022-04-25 13:00:16 +02:00
you-can-show-a-link-to-the-previous-page-by-using-url-previous-in-a-blade-view.md Add this week's tips 2021-11-12 18:43:31 +01:00
you-can-skip-transformrequests-type-middleware.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-start-testing-livewire-components-with-basic-tests-that-makes-sure-components-render-accurately.md Week 12/2022 (#29) 2022-03-26 20:24:23 +01:00
you-can-supply-default-values-for-route-parameters.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
you-can-swap-multiple-keywords-in-a-string-using-this-macro.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-temporarily-disable-timestamps-when-saving-a-model.md Week 14 2022-04-09 02:35:20 +02:00
you-can-track-logins-and-logouts-for-auditing-purposes-using-laravels-native-auth-events.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-transform-variables-passed-to-translation-strings-right-in-language-files.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-unpack-arrays-in-conditions.md Week 20/2022 2022-05-22 13:50:08 +02:00
you-can-use-array-annotations-to-specify-the-available-keys-and-their-value-types-in-php-arrays.md Weekly thread #48 2021-12-03 18:31:27 +01:00
you-can-use-at-includewhen-to-include-certain-blade-partials-when-some-condition-is-met-for-instance-when-the-current-user-is-an-admin.md Weekly thread #2 (#24) 2022-01-14 19:18:35 +01:00
you-can-use-bladestringable-to-define-how-specific-objects-should-be-converted-to-their-string-representation.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
you-can-use-constrained-eager-loading-to-increase-performance-of-database-queries-that-use-relations.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-use-docblocks-in-blade-files-to-add-ide-support.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-use-eloquent-wherecolumn-to-compare-columns-to-each-other.md Week 24/2022 2022-06-19 21:46:45 +02:00
you-can-use-eloquents-exists-method-to-check-whether-a-record-exists.md Week 17/2022 2022-04-29 21:07:03 +02:00
you-can-use-factories-for-generating-any-fake-test-data-by-making-them-use-the-fluent-model.md Add this week's tips 2021-11-12 18:43:31 +01:00
you-can-use-first-class-callables-for-routes-in-php-81.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
you-can-use-generic-class-string-annotations-to-hint-that-an-instance-of-the-passed-class-is-returned.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
you-can-use-giveconfig-when-using-contextual-binding.md Weekly thread #48 2021-12-03 18:31:27 +01:00
you-can-use-native-php-functions-like-fopen-and-fread-to-interact-directly-with-file-streams.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-use-notificationassertnothingsentto-to-check-that-no-notifications-were-sent-to-a-specific-usernotifiable-model.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-use-onerror-on-the-image-tag.md 2021-01 to 2022-01 2022-01-07 18:37:55 +01:00
you-can-use-partial-queue-fakes.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-use-pluck-directly-on-eloquent-classes-no-need-to-query-the-instances-first.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-use-request-whenfilled-to-execute-some-logic-only-when-a-specific-value-is-part-of-the-request-data.md Weekly thread #49 2021-12-10 16:25:33 +01:00
you-can-use-schema-methods-eg-table-or-create-outside-of-migrations.md Weekly thread #46 2021-11-19 16:10:01 +01:00
you-can-use-ternary-operators-like-to-use-dump-or-dd-in-your-short-closures.md Add new tips thread 2021-11-05 17:12:37 +01:00
you-can-use-the-array-spread-syntax-to-pass-an-array-of-arguments-to-another-function.md Change 2021-01 to 2021-50 (Weekly thread #50) 2022-01-07 18:35:45 +01:00
you-can-use-the-at-checked-blade-directive-to-generate-checked-markup.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-use-the-at-production-blade-directive-to-load-specific-scripts-only-in-production-mode.md Weekly thread #2 (#24) 2022-01-14 19:18:35 +01:00
you-can-use-the-data-get-method-to-safely-access-a-nested-array-value.md Weekly thread #46 2021-11-19 16:10:01 +01:00
you-can-use-the-date-helper-on-the-request-class-to-retrieve-a-value-as-a-carbon-instance.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
you-can-use-the-formanother-form-attribute-on-buttons-to-submit-a-different-form.md Weekly thread #46 2021-11-19 16:10:01 +01:00
you-can-use-the-getcollection-and-setcollection-methods-on-the-paginator-to-interact-with-the-underlying-data.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-use-the-missing-method-to-customize-404-handling-on-a-route.md Week 14 2022-04-09 02:35:20 +02:00
you-can-use-the-new-strtransliterate-helper-to-convert-a-string-to-its-closest-ascii-representation.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-use-the-spread-operator-to-merge-arrays-just-like-in-javascript.md Weekly thread #48 2021-12-03 18:31:27 +01:00
you-can-use-the-value-method-in-eloquent-to-fetch-a-single-column-from-the-db.md Weekly thread #2 (#24) 2022-01-14 19:18:35 +01:00
you-can-use-this-gtmock-in-pest-tests.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-use-to-route-instead-of-redirect-gtroute.md Week 22/2022 2022-06-04 16:05:13 +02:00
you-can-use-traits-inside-php-enums.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-use-use-wherebetween-to-filter-for-records-between-two-timestamps.md 13/2022 2022-04-02 17:18:22 +02:00
you-can-use-usecurrent-usecurrentonupdate-on-timestamp-fields-in-your-migrations.md Weekly thread #4 (#26) 2022-01-28 18:03:12 +01:00
you-can-use-value-to-fetch-a-single-value-from-the-database-without-having-to-instantiate-an-entire-model.md Add new tips thread 2021-11-05 17:12:37 +01:00
you-can-use-valueorfail-to-fetch-a-value-from-the-database-or-abort-the-request-if-the-queried-record-does-not-exist.md Add new tips thread 2021-11-05 17:12:37 +01:00
you-can-use-where-on-rule-instances-without-passing-a-callback.md Fix special character 2021-11-05 17:13:26 +01:00
you-can-use-wherenumber-on-routes-instead-of-passing-a-regex-pattern-to-where.md Weekly thread #5-#7, use actual created_at timestamp in Thread creation (#27) 2022-02-21 17:24:21 +01:00
you-can-use-wherexandy-in-eloquent.md back/forward buttons, fix timestamps in DB 2021-04-07 20:16:47 +02:00
you-can-validate-a-field-and-exclude-it-from-the-validated-data.md Week 17/2022 2022-04-29 21:07:03 +02:00
you-can-validate-data-at-the-database-level.md Week 11/2022 2022-03-20 20:41:25 +01:00
you-can-validate-json-columns-at-the-database-level.md Week 17/2022 2022-04-29 21:07:03 +02:00
you-can-validate-user-input-inside-middleware.md Weekly thread #48 2021-12-03 18:31:27 +01:00
you-can-validate-values-for-enum-database-columns-using-the-new-enum-validation-rule.md Weekly thread #46 2021-11-19 16:10:01 +01:00
your-cli-commands-in-laravel-can-provide-auto-complete-for-the-terminal.md Weekly thread #2 (#24) 2022-01-14 19:18:35 +01:00