public static function handle($message, $category = null)
    {

        SecurityLog::create([
            'message'  => $message,
            'category' => $category,
            'user_id'  => auth()->user() ?
                auth()->user()->id : null,
        ]);

    }
public static function handle($message, $category = null)
    {

        SecurityLog::create([
            'message'  => $message,
            'category' => $category,
            'user_id'  => auth()->user() ?
                auth()->user()->id : null,
        ]);

    }
public static function handle ( $ message , $ category = null ) { SecurityLog :: create ( [ 'message' => $ message , 'category' => $ category , 'user_id' => auth ( ) -> user ( ) ? auth ( ) -> user ( ) -> id : null , ] ) ; }
Write an entry in the security log.

@param $message
@param $category
Write an entry in the security log .