]> _ Git - psq.git/commitdiff
global sub
authorLouis Jeckel <louis.jeckel@outlook.cm>
Thu, 17 Sep 2020 18:28:22 +0000 (20:28 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Thu, 17 Sep 2020 18:28:22 +0000 (20:28 +0200)
app/Nova/DiscoverUsers.php
app/Nova/SpecialUsers.php
app/Nova/Subscriber.php
app/Nova/User.php

index 041723054ca915f9c302b3f6e6baa7d2d4a63f6b..cc04e553d1ace1616306663525688a9456585126 100644 (file)
@@ -16,6 +16,7 @@ class DiscoverUsers extends User
     public static $group = "Annuaire";
 
     public static $type = \App\User::TYPE_DISCOVER;
+    public static $globallySearchable = true;
 
 
     public static function label()
index d35cfa4206d4d06633f09eb92063cda31c83707e..b7be00f030a5b2d89eb5cbb7217f832b1cbd5015 100644 (file)
@@ -9,8 +9,11 @@ use Laravel\Nova\Http\Requests\NovaRequest;
 class SpecialUsers extends User
 {
     public static $group = "Annuaire";
+    
     public static $type = \App\User::TYPE_SPECIAL;
 
+    public static $globallySearchable = true;
+
 
     public static function label()
     {
index 9f78de2d080294e8e6ed846135aa7101a15b6f51..7ffcbb9005f88c435e9e0e22cd591397c063bec2 100644 (file)
@@ -13,6 +13,9 @@ class Subscriber extends User
 
     public static $group = "Annuaire";
 
+    public static $globallySearchable = true;
+
+
     public static $type = \App\User::TYPE_SUBSCRIBER;
 
     public static function label()
index 080d8c16abf1f3a0c8a5c6a04df513466f79ff9b..ae7689a46bdb58d4011720855bd6f17abf408da0 100644 (file)
@@ -46,6 +46,8 @@ class User extends Resource
 
     public static $perPageOptions = [50, 100, 250];
 
+    public static $globallySearchable = false;
+
 
     /**
      * The single value that should be used to represent the resource when being displayed.