Some fixes
This commit is contained in:
parent
181621dcf5
commit
cae0369710
5 changed files with 22 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ class AppServiceProvider extends ServiceProvider
|
|||
return request()->getClientIp();
|
||||
} else {
|
||||
return request()->server('HTTP_X_FORWARDED_FOR') ??
|
||||
request()->getClientIp();
|
||||
request()->getClientIp();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -61,9 +61,9 @@ class AppServiceProvider extends ServiceProvider
|
|||
// * FORCE BOOTSTRAP PAGINATOR (or custom if in front)
|
||||
// Early boot, request wont be filled as expected.
|
||||
if (collect(explode('/', \request()->getPathInfo()))->get(1) === 'bo') {
|
||||
Paginator::useBootstrap();
|
||||
Paginator::useBootstrapFive();
|
||||
} else {
|
||||
Paginator::useBootstrap();
|
||||
Paginator::useBootstrapFive();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ return new class extends Migration
|
|||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
|
|
@ -37,6 +39,8 @@ return new class extends Migration
|
|||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ return new class extends Migration
|
|||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
|
|
@ -17,14 +19,16 @@ return new class extends Migration
|
|||
$table->string('contact_mail')->comment("Adresse email de contact");
|
||||
$table->string('rcs')->comment("RCS");
|
||||
$table->string('logo')->comment("Path vers le logo - 135x70px JPG");
|
||||
$table->string('crm_token', 500)->comment("CRM Token encrypté");
|
||||
$table->string('crm_password', 500)->comment("CRM Password encrypté");
|
||||
$table->string('crm_token', 280)->comment("CRM Token encrypté");
|
||||
$table->string('crm_password', 280)->comment("CRM Password encrypté");
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ return new class extends Migration
|
|||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
|
|
@ -19,6 +21,8 @@ return new class extends Migration
|
|||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,13 +8,15 @@ return new class extends Migration
|
|||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('customers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('hashcode', 36);
|
||||
$table->string('email', 255);
|
||||
$table->string('email');
|
||||
$table->timestamps();
|
||||
$table->unique(['hashcode', 'email']);
|
||||
});
|
||||
|
|
@ -22,6 +24,8 @@ return new class extends Migration
|
|||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue