Merge branch 'trunk'

This commit is contained in:
Jérémy Munsch 2024-04-19 11:14:06 +02:00
commit 76152d04c9
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
4 changed files with 38 additions and 6 deletions

View file

@ -76,8 +76,6 @@ class UserCreate extends Command
'lastname' => $this->lastname,
'email' => $this->email,
'password' => $this->password,
'published' => true,
'published_at' => Carbon::now(),
]);
$user->saveOrFail();

View file

@ -0,0 +1,34 @@
<?php
namespace App\Http\Controllers\Fo;
use App\Enums\StaticPageType;
use App\Http\Controllers\Controller;
use App\Models\StaticPage;
class StaticPageController extends Controller
{
/**
* Legal show
*
* @param \App\Models\StaticPage $legalPage
* @return \Illuminate\Contracts\View\View
*/
public function legals(StaticPage $legalPage)
{
$legalPage = StaticPage::query()->where('type', StaticPageType::legals)->first();
return view('fo.pages.legals', ['staticPageModel' => $legalPage]);
}
/**
* Policies show
*
* @param \App\Models\StaticPage $policiesPage
* @return \Illuminate\Contracts\View\View
*/
public function policies(StaticPage $policiesPage)
{
$policiesPage = StaticPage::query()->where('type', StaticPageType::confidentiality)->first();
return view('fo.pages.legals', ['staticPageModel' => $policiesPage]);
}
}

6
package-lock.json generated
View file

@ -1076,9 +1076,9 @@
}
},
"node_modules/@ldc-web/cookie-notice": {
"version": "4.0.0",
"resolved": "https://lab.s-web.fr/api/v4/projects/50/packages/npm/@ldc-web/cookie-notice/-/@ldc-web/cookie-notice-4.0.0.tgz",
"integrity": "sha1-wPt5PtlWiuOjO2sODb4YDwPeBms=",
"version": "4.1.1",
"resolved": "https://lab.s-web.fr/api/v4/projects/50/packages/npm/@ldc-web/cookie-notice/-/@ldc-web/cookie-notice-4.1.1.tgz",
"integrity": "sha1-LGhW/fsWJ0RforZqjUPvudhLWgk=",
"dev": true
},
"node_modules/@nodelib/fs.scandir": {

View file

@ -1,6 +1,6 @@
<?php
use App\Http\Controllers\Bo\StaticPageController;
use App\Http\Controllers\Fo\StaticPageController;
use App\Http\Controllers\Fo\ActivitiesController;
use App\Http\Controllers\Fo\AdnController;
use App\Http\Controllers\Fo\ContactController;