What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-15 22:45:09
tutoriel insérer une image forum php
<?phpif(isset($_FILES['avatar']) AND !empty($_FILES['avatar']['name'])) { $tailleMax = 2097152; $extensionsValides = array('jpg', 'jpeg', 'gif', 'png'); if($_FILES['avatar']['size'] <= $tailleMax) { $extensionUpload = strtolower(substr(st... Add solution -
TypeScript 2022-02-13 20:15:07
Property 'userId' does not exist on type 'Session & Partial<SessionData>'.ts(2339)
//After updating express-session, it changes from sessionData to session. //so you'll have to merge declarations declare module "express-session" { interface Session { user: string; } } Add solution -
Other 2022-02-10 14:50:12
session flash
use Illuminate\Support\Facades\Session; Session::flash('message','This is a message!'); then in your view:: @if(Session::has('message')) <p class="alert {{ Session::get('alert-class', 'alert-info') }}">{{Session::get('message') }}<... Add solution