Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | Prochaine révision Les deux révisions suivantes | ||
devweb:laravel:upgrade [01-10-2021 23:00] edmc73 |
devweb:laravel:upgrade [09-08-2023 20:55] edmc73 |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Upgrade ====== | ====== Upgrade ====== | ||
- | ===== Sur changement | + | ===== passer |
- | Concerne Laravel 5.3 | + | Créons une nouvelle branch dans notre projet |
- | + | | |
- | | + | |
- | compact(): Undefined variable: operator | + | |
- | + | ||
- | vi vendor/ | + | |
- | ligne: 876 | + | |
- | + | ||
- | cherche | + | |
- | <code php> | + | |
- | | + | |
- | | + | |
- | | + | |
- | 875 | + | |
- | | + | |
- | 877 | + | |
- | | + | |
- | 879 | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | et remplace | + | |
- | <code php> | + | |
- | | + | |
- | | + | |
- | | + | |
- | 875 | + | |
- | | + | |
- | 877 | + | |
- | | + | |
- | 879 | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ErrorException in Builder.php line 771: | + | |
- | count(): Parameter must be an array or an object that implements Countable | + | |
- | + | ||
- | vi vendor/laravel/ | + | |
- | ligne: 771 | + | |
- | + | ||
- | cherche | + | |
- | <code php> | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 773 | + | |
- | | + | |
- | 775 | + | |
- | | + | |
- | | + | |
- | 778 | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | et remplace | + | |
- | <code php> | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 773 | + | |
- | | + | |
- | 775 | + | |
- | | + | |
- | | + | |
- | 778 | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ErrorException in Builder.php line 1231: | + | |
- | count(): Parameter must be an array or an object that implements Countable | + | |
- | + | ||
- | vi vendor/ | + | |
- | ligne: 1231 | + | |
- | + | ||
- | cherche | + | |
- | <code php> | + | |
- | 1222 | + | |
- | 1223 { | + | |
- | 1224 | + | |
- | 1225 | + | |
- | 1226 | + | |
- | 1227 | + | |
- | 1228 // We will keep track of how many wheres are on the query before running the | + | |
- | 1229 // scope so that we can properly group the added scope constraints in the | + | |
- | 1230 // query as their own isolated nested where statement and avoid issues. | + | |
- | 1231 | + | |
- | 1232 | + | |
- | 1233 | + | |
- | 1234 | + | |
- | 1235 if ($this-> | + | |
- | 1236 | + | |
- | 1237 } | + | |
- | 1238 | + | |
- | 1239 | + | |
- | 1240 } | + | |
- | </ | + | |
- | et remplace | + | |
- | <code php> | + | |
- | 1222 | + | |
- | 1223 { | + | |
- | 1224 | + | |
- | 1225 | + | |
- | 1226 | + | |
- | 1227 | + | |
- | 1228 // We will keep track of how many wheres are on the query before running the | + | |
- | 1229 // scope so that we can properly group the added scope constraints in the | + | |
- | 1230 // query as their own isolated nested where statement and avoid issues. | + | |
- | 1231 | + | |
- | 1232 | + | |
- | 1233 | + | |
- | 1234 | + | |
- | 1235 if ($this-> | + | |
- | 1236 | + | |
- | 1237 } | + | |
- | 1238 | + | |
- | 1239 | + | |
- | 1240 } | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ErrorException in Collection.php line 1099: | + | |
- | A non-numeric value encountered | + | |
- | + | ||
- | vi vendor/ | + | |
- | ligne: 1099 | + | |
- | + | ||
- | cherche | + | |
- | <code php> | + | |
- | 1090 | + | |
- | 1091 { | + | |
- | 1092 if (is_null($callback)) { | + | |
- | 1093 | + | |
- | 1094 } | + | |
- | 1095 | + | |
- | 1096 | + | |
- | 1097 | + | |
- | 1098 | + | |
- | 1099 | + | |
- | 1100 }, 0); | + | |
- | 1101 } | + | |
- | </ | + | |
- | remplace | + | |
- | <code php> | + | |
- | 1090 | + | |
- | 1091 { | + | |
- | 1092 if (is_null($callback)) { | + | |
- | 1093 | + | |
- | 1094 } | + | |
- | 1095 | + | |
- | 1096 | + | |
- | 1097 | + | |
- | 1098 | + | |
- | 1099 | + | |
- | 1100 }, 0); | + | |
- | 1101 } | + | |
- | </ | + | |
- | + | ||
- | ErrorException in Validator.php line 1603: | + | |
- | preg_match(): | + | |
| | ||
- | vi vendor/laravel/framework/src/Illuminate/Validation/ | + | Ajouter le dépôt de laravel |
- | ligne: 1587 | + | git remote add laravel https://github.com/laravel/laravel.git |
- | chercher | + | Récupérer les informations du dépôt |
- | <code php> | + | git fetch laravel |
- | protected function validateUrl($attribute, | + | |
- | { | + | |
- | /* | + | |
- | * This pattern is derived from Symfony\Component\Validator\Constraints\UrlValidator (2.7.4). | + | |
- | * | + | |
- | * (c) Fabien Potencier < | + | |
- | */ | + | |
- | $pattern = '~^ | + | |
- | ((aaa|aaas|about|acap|acct|acr|adiumxtra|afp|afs|aim|apt|attachment|aw|barion|beshare|bitcoin|blob|bolo|callto|cap|chrome|chrome-extension|cid|coap|coaps|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-playcontainer|dlna-playsingle|dns|dntp|dtn|dvb|ed2k|example|facetime|fax|feed|feedready|file|filesystem|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|ham|hcp|http|https|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|ms-help|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|msnim|msrp|msrps|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|oid|opaquelocktoken|pack|palm|paparazzi|pkcs11|platform|pop|pres|prospero|proxy|psyc|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|secondlife|service|session|sftp|sgn|shttp|sieve|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|things|thismessage|tip|tn3270|turn|turns|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|videotex|view-source|wais|webcal|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc\.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39\.50|z39\.50r|z39\.50s)):// | + | |
- | (([\pL\pN-]+: | + | |
- | ( | + | |
- | ([\pL\pN\pS-\.])+(\.? | + | |
- | | # or | + | |
- | \d{1, | + | |
- | | # or | + | |
- | \[ | + | |
- | (?: |