Commit Graph
130 Commits
Author SHA1 Message Date
Taylor Otwell 8ad7826f56 increase attempt count 2026-04-16 08:58:08 -05:00
Taylor Otwell 01f698ee4d update migration 2026-03-17 08:43:00 -05:00
Taylor Otwell 945f4e5a9f Revert index 2026-03-14 11:54:00 -05:00
nuno maduro f1f2befaa8 Uses unqualified names (#6760) 2026-03-10 14:58:02 -05:00
Taylor Otwell b36082a239 update index 2026-03-09 09:42:33 -05:00
Jack Bayliss e713de24b8 Revert "add index to failed jobs" (#6739)
This reverts commit 36281b285a.
2026-01-15 06:49:36 -08:00
Jack BaylissandTaylor Otwell be7c4b76ec [12.x] Update jobs/cache migrations (#6736)
* Update 0001_01_01_000001_create_cache_table.php

* Update 0001_01_01_000002_create_jobs_table.php

* Update 0001_01_01_000002_create_jobs_table.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
2026-01-13 08:45:09 -06:00
Taylor Otwell 36281b285a add index to failed jobs 2026-01-12 08:42:42 -06:00
Taylor Otwell b45fe690bd disable model events by default when seeding 2025-10-07 14:49:30 -05:00
Taylor Otwell e23c0c1bfd SQLite for local dev (#6322)
* update values for a sqlite default world

* migrate on post create project

* touch database

* fix typo
2024-01-20 16:02:54 -06:00
Taylor Otwell 39532486be wip 2023-12-18 08:27:09 -06:00
Taylor Otwell 3f1426a55a Revert "Rename migration tables (#6295)" (#6298)
This reverts commit b86e53bc71.
2023-12-18 08:26:07 -06:00
Julius Kiekbusch b86e53bc71 Rename migration tables (#6295) 2023-12-18 08:25:35 -06:00
Taylor Otwell feded74d9e wip 2023-12-16 14:35:04 -06:00
Taylor Otwell 428a190050 [11.x] Slim skeleton (#6188)
See: https://github.com/laravel/framework/pull/47309

# Laravel 11 Skeleton Overview

### General Notes

More environment variables have been added to the `.env.example` file. 

The default `QUEUE_CONNECTION` variable value has been updated to `database` instead of `sync`.

The `BROADCAST_DRIVER` and `CACHE_DRIVER` environment variables have been renamed to `BROADCAST_CONNECTION` and `CACHE_STORE`, respectively.

The HTTP Kernel has been removed. Configuration that was previously done in this file can be done in the `bootstrap/app.php` file, including registering / replacing middleware.

The console kernel has been removed. Schedules can be defined in the console “routes” file. Commands generated by `make:command` are automatically loaded and do not require registration. Additional command loading paths can be registered in the `bootstrap/app.php` file.

The exception handler has been removed. Exception handling behavior can be configured in the `bootstrap/app.php` file via `reportable`, `renderable`, `throttle`, and more. Callbacks received by these functions will have their type hints inspected to see if they handle a given exception.

The base HTTP controller no longer extends any other classes (requiring new middleware definition feature). No traits are included by default on the base controller. Authorization can be done using facades, or traits can be added manually.

All middleware has been removed. Configuration of these middleware’s behavior can be done via static methods on the middleware themselves (see framework notes).

The `User` model now utilizes a `casts` method instead of a property. The `HasApiTokens` trait has been removed by default since Sanctum is not installed by default.

All service providers except the `AppServiceProvider` have been removed. Policies are auto-discovered and gates can be registered in `AppServiceProvider`. Likewise, events can be registered in `AppServiceProvider`. Routing behavior is now determined / customized in the `bootstrap/app.php` file.

New `bootstrap/app.php` file can be used to customize core framework behavior like routing, container bindings, middleware, and exception handling.

Sanctum is no longer installed by default (see `install:api`).

Configuration files are not present by default. Can be published by `config:publish` command. Default values are present in the framework and application level configuration now cascades with framework definitions, so only customized values need be present in application level configuration files.

Migration files have been re-dated to be evergreen. The `password_reset_tokens` table migration has been combined into the `users` table migration file. Likewise, the `jobs` table migration has been combined into a single migration with the `failed_jobs` table.

Echo bootstrapping has been removed by default. It is re-inserted by new `install:broadcasting` command.

API and channel routes files are not present by default, can be recreated by `install:api` and `install:broadcasting` respectively.
2023-11-28 14:28:15 -06:00
Nuno MaduroandTaylor Otwell 73cf5bc5bc [10.x] Fixes missing property description (#6275)
* Fixes missing property description

* Update UserFactory.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
2023-11-20 09:20:28 -06:00
Tim MacDonaldandTaylor Otwell 7fe97a165a [10.x] Update fixture hash to match testing cost (#6259)
* Update fixture hash to match testing cost

* Conditionally use lower cost in tests

* use hash facade and memoize

* remove import

---------

Co-authored-by: Taylor Otwell <[email protected]>
2023-10-24 09:11:07 -05:00
Julius Kiekbusch 8e5f0e5d00 Use 12 bcrypt rounds for password in UserFactory (#6247) 2023-09-22 13:03:48 -05:00
Ngô Quốc Đạt 330995f6bd Remove redundant @return docblock in UserFactory (#6119) 2023-02-18 14:54:42 -06:00
Taylor Otwell a28ad2966d rename password reset tokens table in skeleton 2023-01-30 16:53:14 -06:00
Dries Vints 8f5346e3af Merge branch '9.x'
# Conflicts:
#	CHANGELOG.md
2023-01-10 17:13:01 +01:00
Nuno Maduro 55af5469c3 [10.x] Uses PHP Native Type Declarations 🐘 (#6010)
* Adds basic typing around method's arguments and return types

* Adds missing `closure` type

* Adds typing on tests

* Fixes `RedirectIfAuthenticated`

* Fixes `Authenticate`

* Improves `RedirectIfAuthenticated` types

* Fixes user factory `unverified` return type
2023-01-03 10:35:24 +01:00
Andrew Brown 091aa7d882 switch email to a primary key (#6064)
switching from a normal index here to a primary index works the same except for adding a `UNIQUE` constraint.

The `DatabaseTokenRepository` deletes existing records with an email first, before creating a new one, so this additional constraint will be okay.

https://github.com/laravel/framework/blob/9.x/src/Illuminate/Auth/Passwords/DatabaseTokenRepository.php#L88
2023-01-02 08:45:35 -06:00
Martin Ro ad219e82aa Make email unique (#5978)
When seeding large amounts of users there is a chance for a duplicate entry SQL error because the email column is unique. https://github.com/laravel/laravel/blob/64e01753985749fab6626a370b27baa8431e74e6/database/migrations/2014_10_12_000000_create_users_table.php#L19
2022-09-02 09:10:54 -05:00
Taylor Otwell 7b17f5f326 use short closure 2022-08-20 12:22:43 -05:00
suyar 6e1103180b Update laravel/sanctum version (#5957) 2022-07-29 08:01:11 -05:00
Nuno MaduroandDries Vints fa5e54a2ab [9.x] Uses laravel/pint for styling (#5945)
* Uses `laravel/pint` for styling

* Makes `.styleci.yml` ignored on export

* Update composer.json

Co-authored-by: Dries Vints <[email protected]>
2022-07-15 08:38:49 -05:00
Taylor Otwell 0c3d1fabe5 use global functino 2022-06-22 11:02:43 -05:00
Dries VintsandTaylor Otwell 5c5a300bfd [9.x] Add specific test user in seeder (#5879)
* Update DatabaseSeeder.php

* formatting

Co-authored-by: Taylor Otwell <[email protected]>
2022-05-05 08:53:49 -05:00
Choraimy Kroonstuiver 6479a60e95 Improve typing on user factory 2022-02-09 21:24:35 +01:00
Craig Morris 1db81e7e8c use FQN 2022-01-21 12:32:08 +00:00
Craig Morris 4c94086856 switch to extends 2022-01-21 12:21:38 +00:00
Craig Morris 7bff7c6c61 add type to UserFactory for generic parent class 2022-01-21 12:12:45 +00:00
Nuno Maduro 2a88c174b6 Imports without model events trait on seeds (#5745) 2021-12-10 07:16:58 -06:00
Dries Vints d54907c27d Merge branch '8.x'
# Conflicts:
#	CHANGELOG.md
#	composer.json
2021-10-26 17:22:00 +02:00
Nuno Maduro 9915831d22 Guess database factory model by default (#5713) 2021-10-22 13:11:06 -05:00
Taylor Otwell bdcb9681a6 fix conflicts 2021-10-02 10:47:56 -05:00
Markus Machatschek 2c644455da Use anonymous migration for personal_access_tokens table (#5698)
* Use new migration class name style for personal_access_tokens table

* Update 2019_12_14_000001_create_personal_access_tokens_table.php
2021-09-29 09:44:21 -05:00
JuanDMeGon 5f7395b289 Keeping access tokens migration id consistent (#5691)
This is just a tiny "fix," using id(); to be consistent with the other migrations already included in the framework.
2021-09-28 08:03:31 -05:00
Dries Vints 018bb3c157 Merge branch '8.x'
# Conflicts:
#	composer.json
2021-08-12 15:39:10 +02:00
Taylor Otwell 226d1bfc3c [8.x] Sanctum (#5663)
* initial sanctum poc

* add files

* remove token
2021-08-11 13:44:34 -05:00
Dries Vints 4ce641d571 Apply fixes from StyleCI (#5607) 2021-05-07 05:54:25 -05:00
Dries Vints dd8111a32d Merge branch '8.x'
# Conflicts:
#	CHANGELOG.md
#	tests/Feature/ExampleTest.php
#	tests/Unit/ExampleTest.php
2021-04-20 18:14:47 +02:00
Roger Vilà e109ac9022 Update .gitignore (#5593) 2021-04-16 08:13:56 -05:00
Dries Vints 6746f4ec12 [9.x] Implement anonymous migrations (#5590)
* Implement anonymous migrations

* Apply fixes from StyleCI (#5589)
2021-04-15 06:53:35 -05:00
JuanDMeGon 0e8e9a0727 [8.x] Using faker method instead of properties (#5583)
After Faker PHP 1.14 using properties is deprecated and is recommended to use methods instead.
2021-04-13 07:28:01 -05:00
Taylor Otwell ebf2646c34 wip 2021-02-16 10:58:35 -06:00
Jared Lewis eaf7289523 Add unverified state to UserFactory (#5533) 2021-02-09 14:52:23 -06:00
Salim Djerbouh ca30159cab fully qualified user model in seeder (#5406)
makes it easy to just uncomment when tinkering around
2020-09-13 09:17:54 -05:00
Taylor Otwell 710d472d76 models directory 2020-08-20 15:31:07 -05:00