browner12
Repos
79
Followers
84
Following
12

Helper Package

266
44

force user to reauthenticate on higher security pages

28
3

validation package for use in Laravel projects

1
0

Uploader Package

1
0

Mailer Package

1
0

Events

issue comment
[9.x] Add a new function `withSoftDeletes` in routes

@Rizky92 withTrashed() is similar but different that what is proposed here. withTrashed() will load soft deleted models when "route model binding" is happening.

Similar relevant PR I created a couple days ago #44405

Created at 19 hours ago

minor formatting

oops

Created at 2 days ago

minor styling

Created at 2 days ago
pull request opened
[9.x] Allow loading trashed models for resource routes

This change gives the ability to load trashed models when registering a route resource.

You can load trashed models on all the resource routes by calling withTrashed() with no parameters:

Route::resource('users', UserController::class)->withTrashed();

You can selectively load trashed models on methods by passing an array:

Route::resource('users', UserController::class)->withTrashed(['show']);
Created at 2 days ago
create branch
browner12 create branch resource-routes-with-trash
Created at 2 days ago
delete branch
browner12 delete branch fix-class-reference
Created at 2 days ago
delete branch
browner12 delete branch minor-formatting
Created at 2 days ago
pull request closed
Trim randomHtml

I've been getting some failing tests recently when using randomHtml(). Tracked it down to the fact that (new \DomDocument)->saveHTML() always ends the output with a newline character.

Laravel (and I'm guessing other frameworks) will automatically trim all input. Therefore if I'm running a test my database value is <html></html> while my expected value is <html></html>\n, resulting in a failure.

This seems like odd behavior to me to append this newline. This PR trims the resulting HTML, and updates the test.

I realize I may have a very narrow scope of the use case, so interested to start the discussion and see if this is this simple of a fix.

Created at 3 days ago
pull request opened
[9.x] correctly reference class

classes in the root namespace should be prefixed with a slash

Created at 3 days ago
create branch
browner12 create branch fix-class-reference
Created at 3 days ago
pull request opened
[9.x] remove double spaces
Created at 3 days ago
create branch
browner12 create branch minor-formatting
Created at 3 days ago

Add environment encryption command

Add environment encryption commands

Update description

Remove environment check

Add filename option

Accept input

Show decrypted filename

Prevent overwriting of encrypted files

[9.x] Improve test for HttpRequestClass (#44039)

  • [9.x] Improve test for HttpRequestClass

  • [9.x] Improve test for HttpRequestClass

  • [9.x] Improve test for HttpRequestClass

solve test fail in 8.1

[9.x] Add ability to discard Eloquent Model changes (#43772)

  • [9.x] Add ability to discard Eloquent Model changes.

Signed-off-by: Mior Muhammad Zaki crynobone@gmail.com

  • one line

Signed-off-by: Mior Muhammad Zaki crynobone@gmail.com Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Add ability to determine if attachments exist (#43967)

  • add ability to determine if attachments exist

  • add tests for asserting file attachment

  • add tests for asserting data attachment

  • add tests for asserting storage attachment

  • add from storage tests

  • code style

  • add assertions

  • test assertion methods

  • code style

  • formatting

Co-authored-by: Tim MacDonald hello@timacdonald.me Co-authored-by: Taylor Otwell taylor@laravel.com

Avoid matching the word 'use' outside of imports (#44049)

When using custom stubs the word 'use' is also matched outside of the import statement. With this change only the lines starting with use are taken into consideration.

formatting (#44059)

Fix middleware "SetCacheHeaders" with file responses (#44063)

  • Fix test is content empty when it is a file response because in this case, it is always empty

  • add test for cache header with file

Apply fixes from StyleCI

Add missing method tag and common assertion (#44056)

  • Add missing method tag

  • Add common assertion

Revert "Fixed RoueGroup::merge to format merged prefixes correctly. (#44011)" (#44072)

This reverts commit 0fa80d15524be4c6fe6b57f4d93b97541eb2a8e2.

version

chore (logging): add stop_buffering config option (#44071)

Adding the stop_buffering config option.

The FingersCrossedHandler Logger will first start buffering log records until a record exceeds the configured action_level. When the action_level is exceeded the buffered records will be flushed to the provided log location.

By default the FingersCrossedHandler will stop buffering log records after its first flush (due to the $stopBuffering property). All records pushed to the log handler afterwards will be flushed directly to the log location.

With this config update the log handler can be configured to resume the buffering after a flush occurs.

This can be useful for applications that rely heavily on gather debug log records which only are useful when an error logging is passed. In the old setup all the debug records after an error record would be flushed to the log location.

@see https://github.com/Seldaek/monolog/blob/main/src/Monolog/Handler/FingersCrossedHandler.php#L73

Co-authored-by: Wim Ulkeman wulkeman@assuradeurengilde.nl

[9.x] Prevent workflows from running twice (#44053)

  • Prevent workflows from running twice

  • Dont schedule static analysis workflow

Created at 3 days ago

[9.x] Align Remember Me Cookie Duration with CookieJar expiration (#44026)

  • [8.x] Align Remember Me Cookie Duration with CookieJar expiration

This PR https://github.com/laravel/framework/pull/43806 changed the max cookie lifetime of the "forever" cookie - these two values are now misaligned.

  • Update Test

[9.x] Added changelog

[9.x] Fix Stringable typehints with Enumerable (#44030)

  • Fix Stringable types

  • Make Stringable work everytime with iterable

  • Add some tests for iterator acceptance

Allow key as second argument for LazyCollection#filter (#44031)

[9.x] Don't use locks for queue job popping for PlanetScale's MySQL-compatible Vitess engine (#44027)

  • Update DatabaseQueue.php

PlanetScale provides great serverless MySQL-compatible database and guide on how to integrate it in Laravel (https://planetscale.com/docs/tutorials/connect-laravel-app) but under hood uses Vitess.

However it looks that Vitess doesn't support "skip" queries: SQLSTATE[HY000]: General error: 1105 syntax error at position 185 near 'SKIP' (SQL: select * from `jobs` where `queue` = default and ((`reserved_at` is null and `available_at` <= 1662479913) or (`reserved_at` <= 1662479823)) order by `id` asc limit 1 FOR UPDATE SKIP LOCKED)

Following https://github.com/laravel/framework/issues/31536 I've improved engine/version parsing for Vitess so it wouldn't use locks for popping:

=> "mysql"

>>> DB::connection()->getPdo()->getAttribute(PDO::ATTR_SERVER_VERSION)
=> "8.0.23-vitess"```

* Update DatabaseQueue.php
                                    

[9.x] Add RequiredIfAccepted validation rule (#44035)

  • RequiredIfAccepted validation rule

  • RequiredIfAccepted attribute placeholder replacer + styling fixes

  • Update ValidatesAttributes.php

[9.x] Add Vite asset path generation method (#44037)

[9.x] Improve test for HttpRequestClass (#44039)

  • [9.x] Improve test for HttpRequestClass

  • [9.x] Improve test for HttpRequestClass

  • [9.x] Improve test for HttpRequestClass

solve test fail in 8.1

[9.x] Add ability to discard Eloquent Model changes (#43772)

  • [9.x] Add ability to discard Eloquent Model changes.

Signed-off-by: Mior Muhammad Zaki crynobone@gmail.com

  • one line

Signed-off-by: Mior Muhammad Zaki crynobone@gmail.com Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Add ability to determine if attachments exist (#43967)

  • add ability to determine if attachments exist

  • add tests for asserting file attachment

  • add tests for asserting data attachment

  • add tests for asserting storage attachment

  • add from storage tests

  • code style

  • add assertions

  • test assertion methods

  • code style

  • formatting

Co-authored-by: Tim MacDonald hello@timacdonald.me Co-authored-by: Taylor Otwell taylor@laravel.com

Avoid matching the word 'use' outside of imports (#44049)

When using custom stubs the word 'use' is also matched outside of the import statement. With this change only the lines starting with use are taken into consideration.

formatting (#44059)

Fix middleware "SetCacheHeaders" with file responses (#44063)

  • Fix test is content empty when it is a file response because in this case, it is always empty

  • add test for cache header with file

Apply fixes from StyleCI

Add missing method tag and common assertion (#44056)

  • Add missing method tag

  • Add common assertion

Revert "Fixed RoueGroup::merge to format merged prefixes correctly. (#44011)" (#44072)

This reverts commit 0fa80d15524be4c6fe6b57f4d93b97541eb2a8e2.

version

chore (logging): add stop_buffering config option (#44071)

Adding the stop_buffering config option.

The FingersCrossedHandler Logger will first start buffering log records until a record exceeds the configured action_level. When the action_level is exceeded the buffered records will be flushed to the provided log location.

By default the FingersCrossedHandler will stop buffering log records after its first flush (due to the $stopBuffering property). All records pushed to the log handler afterwards will be flushed directly to the log location.

With this config update the log handler can be configured to resume the buffering after a flush occurs.

This can be useful for applications that rely heavily on gather debug log records which only are useful when an error logging is passed. In the old setup all the debug records after an error record would be flushed to the log location.

@see https://github.com/Seldaek/monolog/blob/main/src/Monolog/Handler/FingersCrossedHandler.php#L73

Co-authored-by: Wim Ulkeman wulkeman@assuradeurengilde.nl

[9.x] Prevent workflows from running twice (#44053)

  • Prevent workflows from running twice

  • Dont schedule static analysis workflow

[9.X] Fix Collection::random php-doc (#44097)

Created at 3 days ago
delete branch
browner12 delete branch dusk-chrome-driver-detect
Created at 3 days ago
delete branch
browner12 delete branch dusk-environment-vars
Created at 3 days ago
pull request opened
[9.x] use chrome driver `--detect` option

the --detect flag was added to Dusk in

https://github.com/laravel/dusk/pull/816

which automatically downloads the correct driver based on the version of Chrome currently installed on the system.

Created at 3 days ago
create branch
browner12 create branch dusk-chrome-driver-detect
Created at 3 days ago
issue comment
[9.x] Move environment variables to the "job" level

We spent a good couple days debugging this issue with a Dusk test before realizing there were separate processes at play here, so wanted to get this in the docs to help others avoid wasting that time.

Created at 3 days ago
pull request opened
[9.x] Move environment variables to the "job" level

Github Actions allows you to place environment variables at either the "workflow", "job", or "step" level. This commit moves them from the "step" level to the "job" level.

https://docs.github.com/en/actions/learn-github-actions/environment-variables

Dusk is a unique situation because running php artisan dusk starts the tests in one process, but hitting $this->browse() within the test spawns a new process, that DOES NOT inherit the environment variables set at the "step" level.

Therefore, for Dusk CI on Github, it's better to set ENV variables at the "job" level so both the "test process" and "browser process" inherit them.

Added the DB_USERNAME, DB_PASSWORD, and MAIL_MAILER env variables. The current value in the default .env.example for the password is empty, so we'll set it here to match the default Github Action MySQL password. The default MAIL_MAILER value is "smtp" and points to Mailhog, which is not running on Github Actions, and will throw an Exception if an email is attempted to be sent, so we'll use "log" to avoid that.

Created at 3 days ago
create branch
browner12 create branch dusk-environment-vars
Created at 3 days ago

Fix typo (#8132)

Fixes the spelling of "dedicated" in authorization.md

Fix typo (#8161)

Removes "the" before "Fortify's" in fortify.md

Created at 3 days ago

[9.x] Adds collection comparison operators list (#8121)

  • Adds collection comparison operators list

  • Update collections.md

Co-authored-by: Taylor Otwell taylor@laravel.com

move Docker to "Included Software" (#8119)

Docker was moved to the base box on laravel/settler and can no longer be installed as optional software.

https://github.com/laravel/settler/commit/8b1f706f507d2be1b019d178955bb6b98e996582

https://github.com/laravel/homestead/pull/1716

Document faking a sub-set of jobs (#8117)

  • Document faking a sub-set of jobs

  • Update mocking.md

  • Update mocking.md

Co-authored-by: Taylor Otwell taylor@laravel.com

Collections implode function supports callback (#8123)

  • Collections implode function supports callback

  • Update collections.md

Co-authored-by: Joshua Schuler jschuler@Joshuas-MBP.lan Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Document withoutVite method (#8122)

  • Document withoutVite method

  • formatting

Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Document new db commands (#8114)

  • Document db:monitor command

  • Document db:show and db:table

  • Update database.md

Co-authored-by: Anjorin Damilare damilareanjorin1@gmail.com

  • Update database.md

Co-authored-by: Anjorin Damilare damilareanjorin1@gmail.com

  • Update database.md

Co-authored-by: Anjorin Damilare damilareanjorin1@gmail.com

  • Update database.md

Co-authored-by: Anjorin Damilare damilareanjorin1@gmail.com

  • formatting

Co-authored-by: Joe Dixon hello@joedixon.co.uk Co-authored-by: Taylor Otwell taylor@laravel.com Co-authored-by: Anjorin Damilare damilareanjorin1@gmail.com

[9.x] Add withWhereHas documentation to Eloquent (#8115)

  • docs: add withWhereHas documentation to eloquent

  • formatting

Co-authored-by: Taylor Otwell taylor@laravel.com

wip

[9.x] Update docs regarding sail up time (#8131)

  • Update docs regarding sail up time

  • formatting

Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Including static assets in Vite builds (#8124)

  • add static asset handling to blade section

  • update TOC

  • wording

  • wording

  • wording

  • wording

  • formatting

Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Separate Eloquent factory docs (#8118)

  • Move Eloquent factories documentation to a dedicated page

  • Add a section about model factories to the database testing docs

  • Tweak the factories wording to better suit being on a dedicated page

  • formatting

  • Fix callouts

Co-authored-by: Taylor Otwell taylor@laravel.com

Add assertNotSoftDeleted method documentation (#8134)

[9.x] Update GitHub Actions sample workflow for Dusk (#8137)

  • Use newer version of "actions/checkout".

  • Replace database name that breaks command.

  • Use backticks in database name.

[9.x] to_route helper in routing (#8136)

  • Update routing.md

  • Update routing.md

Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] Cursorpagination: query expressions with parameters not supported (#8135)

  • Update pagination.md

  • Update pagination.md

Co-authored-by: Taylor Otwell taylor@laravel.com

wip

wip

Fix typos (#8149)

[9.x] Clarify prohibited (#8150)

  • Update validation.md

  • Update validation.md

[9.x] Add Vite Facade to Class Reference (#8147)

Created at 3 days ago

Update database.md (#7663)

Update contributions.md

Update releases.md

Added version number when install via Composer (#7691)

Fix unescaped character breaking docs (#7713)

Update cashier-paddle.md

[9.x] Clarify aware limitation (#7721)

  • Update blade.md

  • Update blade.md

  • Update blade.md

Co-authored-by: Taylor Otwell taylor@laravel.com

[9.x] improve isDirty, isClean examples (#7727)

  • [9.x] improve isDirty, isClean examples

  • Update eloquent.md

  • Update eloquent.md

Co-authored-by: Taylor Otwell taylor@laravel.com

Remove redundant return key for 'when' methods (#7723)

Update env variable example for sail minio (#7728)

The filesystems configuration under Sail's File Storage section was using wrong environment variable name FILESYSTEM_DRIVER. It should be FILESYSTEM_DISK.

Co-authored-by: Sikarin sikarin@maqe.com

Adding Scout query callback documentation

fixed typo broadcastsOn @ LN:885 (#7732)

[9.x] Fix Rule::foreEach typo (#7731)

formatting

Merge branch '9.x-scout-query-callback' into 9.x

Update deployment.md (#7738)

  • Update deployment.md

cURL is now required by spatie/laravel-ignition

  • Update deployment.md

Co-authored-by: Taylor Otwell taylor@laravel.com

Minor typo fix (#7739)

[9.x] Adds lang_path() documentation (#7741)

  • Update helpers.md

  • Update helpers.md

Co-authored-by: Taylor Otwell taylor@laravel.com

Update helpers.md (#7740)

[9.x] Attribute::make documentation (#7720)

Created at 3 days ago